Связанный к Брахо́т 9:4

הַנִּכְנָס לִכְרַךְ מִתְפַּלֵּל שְׁתַּיִם, אַחַת בִּכְנִיסָתוֹ וְאַחַת בִּיצִיאָתוֹ. בֶּן עַזַּאי אוֹמֵר, אַרְבַּע, שְׁתַּיִם בִּכְנִיסָתוֹ וּשְׁתַּיִם בִּיצִיאָתוֹ, וְנוֹתֵן הוֹדָאָה לְשֶׁעָבַר, וְצוֹעֵק לֶעָתִיד לָבֹא:

Тот, кто входит в город, произносит две молитвы: одну при входе и одну при выходе. Бен Аззай говорит: четыре, два при входе и два при выходе. [Когда он собирается войти, он говорит: «… что Ты привел меня в этот мир в мире». Как только он вошел, он говорит: «Я благодарю Тебя за то, что привел меня в этот мир в мире»—два при входе. Когда он собирается уходить, он говорит: «… что Ты привел меня из этого города в мире». Когда он уходит, он говорит: «Я благодарю Тебя за то, что он привел меня из этого города в мире». И он благодарит за прошлое и взывает о будущем. [Почему все это? Ибо нужно поблагодарить своего Создателя за то хорошее, что он испытал, и он должен молиться за добро в будущем.]

Tosefta Berakhot

The blessing after the meal is an obligation from the Torah, as it says “And you will eat and be sated, and you shall bless the Lord, your God, for the good land He has given you.” (Devarim 8:10) ’And you will eat and be sated, and you shall bless’ this refers to the blessing after the meal. ‘the Lord, your God’ refers to the first blessing on the land. ‘the good land’ this refers to Jerusalem, as it says “…this good mountain and the Lebanon.” (Devarim 3:25) ‘He has given you’ this refers to the blessing of ‘who is good and does good.’ From where do we learn that just as one is obligated to make a blessing before eating, so too they are obligated to make one after eating? The verse says ‘He has given you,’ meaning from the moment He has given it to you. From where do we learn that we bless even on the mountains and the hills? The verse says ‘on the land.’ From where do we learn that we bless even on the Torah and the commandments? The verse says ‘He has given you,’ and it says elsewhere “…and I will give you the stone tablets…” (Shemot 24:12) R’ Meir says ‘from where do we learn that just as one blesses on the good, so too they bless on the bad? The verse says ‘the Lord, your God…has given you’ “Your God,” meaning, “your Judge.” Bless Him for every judgement He passes on you, be it for the good or bad.