The Shulchan Aruch · Orach Chayim
אורח חיים ר״לOrach Chayim 230
Siman 230 of 697 in Orach Chayim — 5 se'ifim
הלכות שאר ברכותLaws of Other Blessings· siman 230
Se’if 1א׳
הַמִּתְפַּלֵּל עַל מַה שֶּׁעָבַר, כְּגוֹן שֶׁנִּכְנַס לְעִיר וְשָׁמַע קוֹל צְוָחָה בָּעִיר, וְאָמַר: יְהִי רָצוֹן שֶׁלֹּא יְהֵא קוֹל זֶה בְּתוֹךְ בֵּיתִי; אוֹ שֶׁהָיְתָה אִשְׁתּוֹ מְעֻבֶּרֶת אַחַר מ' יוֹם לְעִבּוּרָהּ, וְאָמַר: יְהִי רָצוֹן שֶׁתֵּלֵד אִשְׁתִּי זָכָר, הֲרֵי זֶה תְּפִלַּת שָׁוְא, אֶלָּא יִתְפַּלֵּל אָדָם עַל הֶעָתִיד לָבֹא, וְיִתֵּן הוֹדָאָה עַל שֶׁעָבַר, כְּגוֹן הַנִּכְנָס לַכְּרַךְ, אוֹמֵר: יְהִי רָצוֹן מִלְּפָנֶיךָ ה' אֱלֹהֵינוּ שֶׁתַּכְנִיסֵנִי לַכְּרַךְ הַזֶּה לְשָׁלוֹם; נִכְנַס בְּשָׁלוֹם, אוֹמֵר: מוֹדֶה אֲנִי לְפָנֶיךָ ה' אֱלֹהֵינוּ שֶׁהִכְנַסְתַּנִּי לַכְּרַךְ הַזֶּה לְשָׁלוֹם; בִּקֵּשׁ לָצֵאת, אוֹמֵר: יְהִי רָצוֹן מִלְּפָנֶיךָ ה' אֱלֹהֵינוּ שֶׁתּוֹצִיאֵנִי מִכְּרַךְ זֶה לְשָׁלוֹם; יָצָא בְּשָׁלוֹם, אוֹמֵר: מוֹדֶה אֲנִי לְפָנֶיךָ ה' אֱלֹהַי שֶׁהוֹצֵאתָנִי מִכְּרַךְ זֶה לְשָׁלוֹם, וּכְשֵׁם שֶׁהוֹצֵאתָנִי לְשָׁלוֹם כֵּן תּוֹלִיכֵנִי לְשָׁלוֹם וְכו', עַד בָּרוּךְ אַתָּה ה' שׁוֹמֵעַ תְּפִלָּה. וְזוֹ הִיא תְּפִלַּת הַדֶּרֶךְ שֶׁנִּכְתְּבָה הִיא וְכָל דִּינֶיהָ בְּסִימָן ק "י.
One who prays for something that has already happened. For example, he entered the city and heard a cry in the city and he prayed "may it be God's will that this cry is not from a member of my household" or if his his wife was expecting and more than forty days had passed and he said "may it be God's will that my wife will give birth to a boy - behold this is a meaningless prayer. Rather a person should always pay for the future and give thanks for the past...
Se’if 2ב׳
הַנִּכְנָס לָמֹד אֶת גָּרְנוֹ, אוֹמֵר: יְהִי רָצוֹן מִלְּפָנֶיךָ ה' אֱלֹהַי שֶׁתִּשְׁלַח בְּרָכָה בַּכְּרִי הַזֶּה; הִתְחִיל לָמֹד, אוֹמֵר: בָּרוּךְ הַשּׁוֹלֵחַ בְּרָכָה בַּכְּרִי הַזֶּה; מָדַד וְאַחַר כָּךְ בֵּרַךְ הֲרֵי זֶה תְּפִלַּת שָׁוְא, שֶׁאֵין הַבְּרָכָה מְצוּיָה אֶלָּא בְּדָבָר הַסָמוּי (פי' דְּנֶעֱלָם וְאֵינוֹ נִרְאֶה) מִן הָעַיִן.
One who goes to measure his grain says "May it be You will, Hashem my God, that you send blessing to this pile" after he begins measuring he says "Blessed is the One who sends / sent blessing to this pile" if after he measured he recited the blessing, it's an empty blessing for blessing rests only on that which is hidden from the eye.
Se’if 3ג׳
הַנִּכְנָס לַמֶּרְחָץ, אוֹמֵר: יְהִי רָצוֹן מִלְּפָנֶיךָ ה' אֱלֹהַי שֶׁתַּכְנִיסֵנִי לְשָׁלוֹם וְתוֹצִיאֵנִי לְשָׁלוֹם, וְתַצִּילֵנִי מֵהָאוּר הַזֶּה וְכַיּוֹצֵא בּוֹ לֶעָתִיד לָבֹא; יָצָא בְּשָׁלוֹם, אוֹמֵר מוֹדֶה אֲנִי לְפָנֶיךָ ה' אֱלֹהַי שֶׁהִצַּלְתַּנִי מֵהָאוּר הַזֶּה.
The one who enters the bathhouse should say: May it be your will, my God, that you bring me into peace and bring me out into peace, and save me from this light." When he comes out in peace he says, "I thank you, my God, that you saved me from this light."
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0