Arukh HaShulchan Yomi · Expert – Beit Midrash Analysis · On-Ramp

Arukh HaShulchan, Orach Chaim 227:3-230:2

On-RampExpert – Beit Midrash AnalysisDecember 28, 2025

Sugya Map

  • Issue: The distinction between prayer (tefillah) and thanksgiving (todah) regarding their temporal applicability (past vs. future), and the attendant halachic implications for various brachot and prayers.
  • Nafka Mina(s):
    • Validity of prayers concerning past events (vain prayer - tefillah she'einah tzrichah le'et'ah).
    • Timing of prayers and blessings for ongoing processes (e.g., pregnancy, measuring grain).
    • The nature of seemingly miraculous events and their inclusion in halachic practice.
    • The rationale and continued relevance of certain communal or individual prayers and brachot in contemporary times.
  • Primary Sources:
    • Berachot 60a (Hillel, evil tidings).
    • Berachot 54a (prayer for male child, 40 days).
    • Berachot 58a (wayfarer's prayer).
    • Yerushalmi Berachot 10:4 (bathhouse).
    • Arukh HaShulchan, Orach Chaim 227:3-230:2.

Text Snapshot

"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)."¹

  • Dikduk/Leshon Nuance: The phrase "vain prayer" (tefillah she'einah tzrichah le'et'ah) is the core concept. The Arukh HaShulchan explains that prayer is for the future. Once the event (the shouting) has occurred, it is in the past, rendering a prayer about it as ill-timed and thus vain. The contrast with Hillel, who trusts (batach) in the Lord, highlights that trust is distinct from prayer concerning a settled past.

"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."²

  • Dikduk/Leshon Nuance: The distinction is again temporal, but tied to a halachic marker (40 days). The concept of tzurah (form) is crucial. Before tzurah, the state is fluid and amenable to divine intervention via prayer. After tzurah, the event is considered "formed" and thus past/fixed. The mention of Dinah and miracles serves to preempt a kal vachomer (a fortiori) argument based on biblical events, stating that such cases are either within the halachically permissible timeframe or are exceptional miracles not to be relied upon for general practice.

"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."³

  • Dikduk/Leshon Nuance: This section explicitly delineates the future-oriented nature of tefillah ("allow me to enter") and the past-oriented nature of todah ("thank You...for allowing me to enter"). The structure is consistent: petition for what is to come, followed by gratitude for what has transpired.

Readings

Rashi on Berachot 60a s.v. "He shall not be afraid of evil tidings"

Rashi, in his commentary on Berachot 60a, addresses the verse concerning the righteous man who "shall not be afraid of evil tidings." He states, "ולא יפחד מן הדבר הרע הבא עליו, שהרי כבר יודע שאין בו אלא טוב." ("And he shall not fear the evil thing coming upon him, for he already knows that there is nothing but good in it for him.")⁴ This is the first interpretation offered by the Arukh HaShulchan. Rashi here explains the steadfastness of the righteous not as a passive lack of fear, but as an active recognition of divine providence. Even apparent "evil tidings" are, from the perspective of the truly righteous, ultimately part of a benevolent divine plan. Therefore, the fear associated with such tidings is neutralized by this profound understanding. This is not prayer for the past, nor is it a prayer for the future; it is a state of being, a spiritual posture rooted in emunah (faith) and bitachon (trust). The Arukh HaShulchan leverages this to explain Hillel's reaction: his trust transcends the immediate perception of calamity.

Beit Yosef on Orach Chaim 227, citing the Yerushalmi

The Beit Yosef, in his commentary on the Tur (which forms the basis of the Shulchan Aruch and is extensively referenced by the Arukh HaShulchan), grapples with the prayer for entering a city. He cites the Yerushalmi Berachot 4:4: "הנכנס לעיר אומר: יהי רצון שתכניסני לכרך זה בטוב, ויוציאני בטוב." ("One who enters a city says: May it be Your will that You bring me into this city well, and bring me out well.")⁵ The Beit Yosef then discusses why this prayer is said, noting Rashi's explanation (in his commentary on Berachot 58a) that it is due to the prevalence of criminality in towns.⁶ The Beit Yosef then quotes the Maharil, who states that even if the danger is no longer present, it is still proper to recite such prayers "מפני דברי סופרים" ("on account of the words of the Sages"), implying a rabbinic enactment or custom that retains its force even when its original underlying cause has diminished.⁷ This highlights a tension: the Arukh HaShulchan's explicit statement that prayer is only for the future, contrasted with the continued practice of certain prayers whose original rationales are historical. The Beit Yosef, by referencing the Yerushalmi and the Maharil, suggests that the halachic imperative extends beyond the strict logical application of the "future-only" rule, incorporating the authority and custom of the Sages. This provides a basis for understanding why some prayers, seemingly for a past event (like entering a city that has already been entered), are still recited.

Magen Avraham on Orach Chaim 227

The Magen Avraham, in his commentary on Orach Chaim 227, elaborates on the Arukh HaShulchan's discussion regarding the wayfarer's prayer and the bathhouse prayer. He notes, "ומיהו בזמן הזה שאין הנכנסין בסכנה, אין לדבר בהם" ("However, in our times, when entering [a bathhouse] is not dangerous, one should not speak of them [these specific prayers]").⁸ This aligns with the Arukh HaShulchan's principle of tefillah she'einah tzrichah le'et'ah. The Magen Avraham, however, further refines the concept of "vain prayer." He explains that when the Arukh HaShulchan says one who has measured grain and then blesses has uttered a vain prayer, it's because "ברכה זו אין לה מקום אלא לדבר שאינו נראה" ("this blessing has no place except for something unseen"), implying that visible, quantifiable things like measured grain no longer require a blessing for future increase, as the measurement itself is the tangible outcome.⁹ This is a crucial insight: the Arukh HaShulchan's framework is not merely about past vs. future, but also about the nature of the divine intervention being sought or acknowledged. Blessings are for the hidden, the potential, the unseen forces that guide outcomes.

Friction

The core tension in this sugya lies between the strict logical delineation of prayer for the future versus thanksgiving for the past, and the practical application of halacha, which often incorporates rabbinic enactments, historical context, and the concept of davening lishmah (praying for its own sake) or davening b'tzeruchut (praying out of need, even if the need is perceived differently).

The Kushya: The Wayfarer's Prayer and "D'varim She'b'ktav"

The Arukh HaShulchan states that the prayer for entering a city ("may it be Your will... that you allow me to enter this town in peace") is no longer customary because Rashi explained its basis is the criminal activity in towns, which is no longer relevant. He concludes, "Therefore, we are no longer accustomed to saying this."¹⁰ Yet, the general principle articulated by the Beit Yosef, citing the Yerushalmi and Maharil, suggests that d'varim she'b'ktav (matters written in rabbinic texts) or minhag avot (ancestral custom) can override the absence of the original cause. Furthermore, the Arukh HaShulchan himself elsewhere in Orach Chaim (e.g., 230:1, concerning birkat hagomel) acknowledges that even when the specific danger has passed, the blessing is still recited. How can the Arukh HaShulchan reconcile the continued recitation of birkat hagomel (thanksgiving for deliverance from danger) with his dismissal of the wayfarer's prayer due to the diminished danger, when both are rooted in past perils?

The Terutz: Nuance in "Relevance" and Rabbinic Authority

The resolution hinges on a nuanced understanding of "relevance" and the hierarchy of halachic authority.

  1. Nature of the Prayer: The wayfarer's prayer, as described, is a petition for future safety upon entry. The Arukh HaShulchan's rejection is based on the specific rationale provided by Rashi—criminality. When that specific rationale vanishes, the prayer, in its original context, loses its immediate necessity. In contrast, birkat hagomel is a direct thanksgiving for a past deliverance, a mitzvah d'oraita (a positive commandment from the Torah, albeit fulfilled with a blessing) that has a broader applicability, acknowledging God's overarching role in preserving life. The Arukh HaShulchan's emphasis on "vain prayer" applies to petitions that are out of time, not necessarily to expressions of gratitude for past salvation, which are always appropriate.

  2. Rabbinic Authority vs. Logical Deduction: While the Beit Yosef points to the authority of the Sages in maintaining prayers, the Arukh HaShulchan, in his role as a codifier of Orach Chaim, often prioritizes the logical application of principles derived from the Gemara. His statement about the wayfarer's prayer is a direct application of the tefillah she'einah tzrichah le'et'ah principle, where the reason for the prayer (criminality) has disappeared. He acknowledges that one can still say it, especially for the sake of adhering to Sages' words, but states it's not the custom because the specific underlying reason is gone. This isn't a complete abrogation, but a recognition of the shift in practical relevance for the communal custom. The birkat hagomel has a stronger, more direct halachic basis as a required thanksgiving, making its continued practice more robust even when the specific danger lessens.

  3. The "Vain Prayer" Threshold: The Arukh HaShulchan's framework is that a prayer is vain if it concerns a settled past and has no other valid basis (like acknowledging divine providence or a broader mitzvah). The wayfarer's prayer, stripped of its Rashi-based rationale, falls into this category of a petition for a past event that is now fixed. Birkat hagomel, however, is a formal mitzvah of thanksgiving, not merely a spontaneous prayer.

Intertext

Tanakh: Tehillim and the Nature of Praise

The sugya's distinction between prayer for the future and thanksgiving for the past resonates deeply with the structure and content of Tehillim. King David frequently shifts between petitions and expressions of gratitude: "I love the Lord, because He hath heard my voice and my supplications." (Tehillim 116:1) - This is a clear example of todah for a past deliverance. "As the harpist plays his tune, so is my soul moved by Your word." (Tehillim 119:164) - This is a constant state of praise, not tied to a specific event, but to the overarching goodness of Torah. "For the Lord will hear the needy, and will not despise His prisoners." (Tehillim 69:34) - This is a prayer for the future, a plea for divine intervention.

The constant theme is that God hears and acts, necessitating both supplication for what is to come and heartfelt thanks for what has been. The Arukh HaShulchan's analysis is a halachic systematization of this biblical principle.

Shulchan Aruch, Orach Chaim 227:1 and 230:1

The Arukh HaShulchan is, of course, commenting on the Shulchan Aruch. In Orach Chaim 227:1, the Shulchan Aruch discusses prayers upon entering and exiting a city: "הנכנס למדינה או לעיר אומר: 'יהי רצון מלפניך ה' א-להינו, שתכניסני לכרך זה בטוב, ותוציאני בטוב, ותצילני מן העכו"ם, ומפגע רע.' "¹¹ ("One who enters a country or a city says: 'May it be Your will, Hashem our God, that You bring me into this city well, and bring me out well, and save me from gentiles, and from evil occurrences.'"). The Arukh HaShulchan's commentary here directly addresses the custom and its rationale, as discussed in the Friction section. In Orach Chaim 230:1, the Shulchan Aruch discusses birkat hagomel: "היוצא מבית האסורים, או מבית החולים, או מן השבי, או מן הדרך, או מן הים, אומר ברכה זו: 'ברוך אתה ה' א-להינו מלך העולם, הגומל לטובים, והגומל לכל חי.' "¹² ("One who is released from prison, or from the hospital, or from captivity, or from a journey, or from the sea, says this blessing: 'Blessed are You, Hashem our God, King of the universe, Who bestows kindnesses upon the good, and bestows kindnesses upon all living beings.'"). The Arukh HaShulchan's explanation that we are no longer accustomed to the bathhouse prayer because the danger has passed, while birkat hagomel is still recited, implicitly draws a distinction between a specific, historically-situated petition and a broader, divinely-mandated thanksgiving that retains its relevance.

Psak/Practice

The Arukh HaShulchan's exposition emphasizes that prayer is fundamentally a petition for future events, while thanksgiving is a recognition of past mercies. This has several practical implications:

  1. Vain Prayers: Prayers concerning events that have already irrevocably occurred, and for which there is no further divine agency to influence, are considered vain (tefillah she'einah tzrichah le'et'ah) and should not be uttered. This applies to situations like praying after a calamity has struck and its outcome is fixed.
  2. Timing is Key: For processes that unfold over time (pregnancy, agricultural growth), prayers should be directed towards the future outcome, within the halachically defined windows of possibility (e.g., before the 40th day for fetal formation).
  3. Thanksgiving is Always Apposite: Expressions of gratitude (todah) for past mercies are always appropriate and encouraged. The birkat hagomel is a prime example of this principle, recited upon deliverance from significant dangers.
  4. Rabbinic Custom and Rationale: While logic dictates prayer for the future, the practice of certain prayers is also informed by rabbinic tradition and the underlying reasons for their institution. When the original reason is no longer operative (like the specific danger of ancient city travel), communal custom may cease, though individual adherence to the Sages' words is still commendable.
  5. The "Punctilious": The Arukh HaShulchan notes that the punctilious (ha-machmirim) will say a prayer before any healing, "May it be Your will... that this will be healing for me," aligning with the principle of praying for future benefit. Similarly, the adage "All that the Merciful One does is for good" represents a philosophical underpinning for accepting past events, even negative ones, with a positive outlook, rather than attempting to alter them through prayer.

Takeaway

The halachic framework for prayer and thanksgiving hinges on the fundamental distinction between petitioning for the future and expressing gratitude for the past. While divine mercy can extend to all times, our articulated requests must align with the temporal reality of cause and effect, lest they become "vain prayers."