ארבעה צריכים להודות יורדי הים כשעלו ממנה והולכי מדברות כשיגיעו ליישוב ומי שהיה חולה ונתרפא ומי שהיה חבוש בבית האסורים ויצא. ואומרה על הס"ת לאחר ברכה אחרונה. אם איחר יש לו תשלומין לברך כל זמן שירצה ונכון שלא לאחר שלשה ימים (שו"ע או"ח ריט). Rav says, (Maseches Berachos 54) that four are obligated to offer thanks: persons who have safely completed a sea or land journey, or who have recovered from a serious illness, or have been released from captivity. One who is obligated to recite the blessing of thanksgiving should do so at the Torah-scroll, after the blessing following the Torah reading is said.
בָּרוּךְ אַתָּה יְהֹוָה אֱלֹהֵינוּ מֶלֶךְ הָעוֹלָם. הַגּוֹמֵל לְחַיָּבִים טוֹבוֹת. שֶׁגְּמָלַנִי כָּל טוֹב: Blessed are You, Adonoy our God, King of the Universe, Who bestows goodness upon the guilty, Who has bestowed every goodness upon me.
הקהל עונה אמן. ואומרים: מִי שֶׁגְּמָלְךָ טוֹב. הוּא יִגְמָלְךָ כָּל טוֹב סֶלָה: The congregation responds: He Who has bestowed goodness upon you, may He bestow every goodness upon you, forever.