Arukh HaShulchan, Orach Chaim
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
דבר מובן בשכל שעניין התפלה הוא רק על העתיד ולא על העבר, דמה יועיל על העבר, ועל העבר לא שייך רק לשון הודאה, לתת תודה לו יתברך על הטוב שעשה לו. ועל העתיד הוי להיפך, דהודאה לא שייך רק על מה שהיה, ותפ(י)לה שייך על העתיד שמבקש מהשי"ת שיעשה לו כך וכך.
It is intellectually understood that the notion of prayer is only relevant to the future and not the past, for how could it have an effect on the past? Only thanksgiving is relevant to the past- to give praise to Him, may He be blessed, for the good that He did for him. Regarding the future, the opposite is the case- for praise is only relevant for that which already transpired, and prayer is relevant to the future for one is asking God to do something for him....
ולכן הנכנס לעיר ושמע קול צווחה בעיר מאיזה צרה שנתהוה בה, ואומר: 'יהי רצון שלא תהיה זה בתוך ביתי' - הרי זו תפלת שוא, דזהו תפלה על העבר ומאי דהוה הוה. אבל יכול לומר: 'מובטחני שאין זה בתוך ביתי' אם הוא צדיק גמור, כמעשה דהלל הזקן שאמר כן, ועליו נאמר משמועה רעה לא יירא נכון לבו בטוח בד' (ברכות ס'.). והעניין מתפרש בשני פנים: אחד כפשוטו שהוא בטוח שאין זה בביתו, והשנית מפני שהרגיל את בני ביתו שיקבלו הכל בשמחה הן הטוב הן ההיפך, ואם כן ממילא אפילו אם ח"ו קרם איזה צרה לא יצעקו בקולות אלא יקבלו באהבה ובשתיקה.
Therefore, one who enters a city and hears the sound of shouting due to some sort of calamity that occurred in it and says, "may it be [God's] will that [that shouting] is not from within my house", has uttered a vain prayer, for this prayer is regarding the past and whatever has happened has already happened. But he can say, "I trust that it is not from my house" if he is wholly righteous. This is akin to the story of Hillel the Elder, regarding whom it is said: He shall not be afraid of evil tidings; his heart is steadfast, trusting in the Lord (Berachot 60a). The matter can be explicated in two ways: (1) in its simple rendering- that he is not afraid that it was coming from his house or (2) because he had accustomed his household to accept everything with joy, both the good and its opposite. Therefore, even if, God forbid, some calamity had taken place, they would not scream, but would rather accept it with love and silence. ...
וכן מי שהיתה אשתו מעוברת ורצונו בזכר, עד מ' יום יכול להתפלל ולומר: 'יהי רצון שתלד אשתי זכר', כי עד מ' יום הוה מיא בעלמא. אבל לאחר מ' יום שנתרקם צורת הולד ואם מתפלל אז: 'יהי רצון שתלד אשתי זכר' - הרי זה תפלת שוא, דמה שהיה היה ולא ישתנה עוד. ואף שמצינו שדינה נתהפכה מזכר לנקבה, זה היה בתוך מ', ואפילו אם שם היה לאחר מ' אין מזכירין מעשה נסים (שם), וענייני אבותינו הקדושים היו כולם בנס.
So too, if one's wife is pregnant and he wants a male child, he can prayer up until 40 days: 'May it be [God's] will that my wife will give birth to a son', since up until 40 days [the fetus] is merely water [viz. not formed]. But after 40 days, when the form has been solidified, praying 'May it be [God's] will that my wife will give birth to a son' would be a vain prayer, for what has happened has already happened, and it cannot be changed. Even though we find that Dinah switched from a male to female, this was within 40 days, and even if it were after 40 days, we do not mention [viz. draw conclusions from] miracles (ibid.), and the matters related to our holy forefathers were all miraculous.
הנכנס לכרך אומר: "יהי רצון מלפניך ה' אלקינו ואלקי אבותינו שתכניסני לכרך הזה לשלום", וזהו תפלה על העתיד. וכשנכנס בשלום אומר: "מודה אני לפניך ד' אלקי שהכנסתני לכרך הזה לשלום", וזהו הודאה על העבר. וכן ביציאתו, בקש לצאת אומר: "יהי רצון… שתוציאני מכרך הזה לשלום", וכשיצא אומר: "מודה… שהוצאתני מן הכרך הזה בשלום, וכשם שהוצאתני לשלום כן תדריכני לשלום וכו'”, וזהו תפלת הדרך שנתבאר בסימן ק"י ע"ש. וכתב הרמב"ם בפירוש המשנה שאין זה לא תפלה ולא ברכה אלא בקשה בעלמא. ולכן עכשיו אין אנו מורגלים בזה, לפי שרש"י ז"ל פירש משום דבכרך מצויים עלילות ע"ש, ובזמנינו לא שייך זה. ומכל מקום הזהיר בדברי חז"ל נכון לאמרו, ומה גם שאין בזה ברכה שנחשוש לברכה לבטלה.
One who enters a town says: 'may it be Your will, Hashem our God and God of our forefathers, that you allow me to enter this town in peace'; this is a prayer regarding the future. When he has entered in peace he says: 'thank You Hashem, my God, for allowing me to enter this town in peace'; this is thanksgiving for the past. So too when he is leaving, he says: 'may it be Your will..that you take me out of this town in peace'. When he has left, he says: 'thank You...for allowing me to leave this town in peace; just as you have allowed me to leave in peace, so too should You guide me in peace, etc.'. This is the wayfarer's prayer, as is explained in section 110, see there. Maimonides wrote in his commentary to the Mishnah that this is not a prayer or a blessing, rather it is merely a request. Therefore, we are no longer accustomed to saying this, since Rashi explained that [the reason it is said is] due to the criminal activity in the towns, and in our times this is no longer relevant. Nonetheless, it is proper to say for one who is careful regarding the words of the Sages, especially since this is not a blessing such that one would be concerned about a blessing in vain.
הנכנס למוד את גורנו אומר: "יהי רצון מלפניך ה' אלקי שתשלח ברכה בכרי הזה", שהיא תפלה על להבא. התחיל למוד אומר: "ברוך השולח ברכה בכרי הזה", לפי שהוא מובטח שתהיה ברכה. מדד ואחר כך בירך - הרי זה תפלה שוא, שאין הברכה מצויה אלא בדבר הנעלם מן העין כדי שלא יהא נראה להדיא כנגד הטבע ממש, דרוב נסים הם נסתרים. והנכנס למרחץ ובמרחצים שלהם שהיתה נסוקת מתחתיו והיו בסכנה תמיד, אומר: "יהי רצון מלפניך ד' אלקי שתכניסני לשלום ותוציאני לשלום, ותצילני מהאור הזה וכיוצא בו לעתיד לבוא", וכשיצא בשלום אומר: "מודה אני לפניך ד' אלקי שהצלתני מהאור הזה". ועכשיו לא נהגו בזה, דהתנור עומד מן הצד וליכא סכנה (ב"ח וט"ז ומג"א), וכן הוא להדיא בירושלמי דפרק י' דברכות. והנכנס להקיז דם אומר: "יהי רצון… שיהא עסק זה לי לרפואה, כי רופא חנם אתה", ולאחר שהקיז יאמר: "ברוך רופא חולים", ויש מי שאומר בשם ומלכות (ט"ז סק"ג), וגם ברמב"ם הוא בשם ע"ש (וכן כתב הבית יוסף בשם הסמ"ג). ונכון שכל רפואה שנוטל יאמר: "יהי רצון מלפניך ד' אלקי שתהא זה לי לרפואה", וכן נוהגין המדקדקים. ולעולם יהא אדם רגיל לומר: "כל מה דעביד רחמנא - לטב עביד". כללו של דבר: לעולם יתפלל אדם על העתיד ויבקש רחמים מלפניו יתברך ויתן הודאה על העבר, ויודה וישבח כפי כחו, וכל המרבה להודות לד' הרי זה משובח, וכמאמר הכתוב: "טוב להודות לד' ולזמר לשמך עליון”.
...One who goes in to measure his grain should say: 'may it be Your will, Hashem my God, that you send blessing for my stalks', since this is a blessing regarding the future. When he has begun measuring, he says: 'blessed is He who sends his blessing for my stalks', since he trusts that there will be blessing. One who has measured and then blesses has uttered a vain prayer, since blessing is only found for something that cannot be seen, so that it will not seem as though it is really going against nature, since most miracles are hidden ones. One who enters a bathhouse (their bathhouses had fires under them and were a constant danger) should say: 'may it be Your will, Hashem My God, that you allow me to enter in peace and leave in peace, and that you save me from this fire, and similarly in the future'. When he has exited peacefully, he should say: 'Thank You Hashem, My God, for saving me from this fire'. We are no longer accustomed to this, since the fire is now to the side and is not dangerous (Bach, Taz, Magen Avraham). This is explicit in the Palestinian Talmud in the 10th chapter of Berachot. One who lets blood should say: 'May it be Your will..that this matter will be advantageous to my health, since you are a free doctor'. After you let blood, say: 'Blessed is the healer of the sick'. Some say to say it with God's name and kingship (Taz, #3 and Maimonides, as well as the Beit Yosef in the name of the Semag). It is proper to say before every healing: 'May it be Your will, Hashem My God, that this will be healing for me'. This is how the punctilious act. One should accustom himself to say: 'All that the Merciful One does is for good'. The principle is that one should always prayer for the future and beseech for mercy before Him, may He be blessed, and he should give thanksgiving for the past, thanking and praising according to his capacity. The more praise one accords to God, the better. This is like it says in the verse: 'it is good to praise God, and to sing your exalted name'.