The Talmud establishes that one who reaches a place where a personal miracle occurred must recite a blessing of gratitude. This principle is extended by later authorities to one's birthday as a day of personal divine kindness deserving thanksgiving.
אַנִּיסָּא דְרַבִּים מְבָרְכִינַן, אַנִּיסָּא דְיָחִיד לָא מְבָרְכִינַן?! וְהָא הָהוּא גַּבְרָא דַּהֲוָה קָא אָזֵיל בַּעֲבַר יַמִּינָא. נְפַל עֲלֵיהּ אַרְיָא, אִתְעֲבִיד לֵיהּ נִיסָּא וְאִיתַּצַּל מִינֵּיהּ. אֲתָא לְקַמֵּיהּ דְּרָבָא, וַאֲמַר לֵיהּ: כׇּל אִימַּת דְּמָטֵית לְהָתָם — בָּרֵיךְ ״בָּרוּךְ שֶׁעָשָׂה לִי נֵס בַּמָּקוֹם הַזֶּה״. וְתוּ, זִמְנָא חֲדָא הֲוָה קָאָזֵיל בְּרַסְתְּקָא דְמָחוֹזָא וּנְפַל עֲלֵיהּ גַּמְלָא פְּרִיצָא. אִיתְפָּרַקָא לֵיהּ אָשִׁיתָא, עָל לְגַוַּהּ. כִּי מְטָא לַעֲרָבוֹת בָּרֵיךְ: ״בָּרוּךְ … שֶׁעָשָׂה לִי נֵס בַּעֲרָבוֹת וּבְגָמָל״. כִּי מְטָא לְרַסְתְּקָא דְמָחוֹזָא בָּרֵיךְ: ״בָּרוּךְ … שֶׁעָשָׂה לִי נֵס בְּגָמָל וּבַעֲרָבוֹת״! אָמְרִי: אַנִּיסָּא דְרַבִּים — כּוּלֵּי עָלְמָא מִיחַיְּיבִי לְבָרוֹכֵי, אַנִּיסָּא דְיָחִיד — אִיהוּ חַיָּיב לְבָרוֹכֵי.
The Gemara asks: For a miracle that occurs for the multitudes we recite a blessing, but for a miracle that befalls an individual person we do not recite a blessing? Wasn’t there an incident where a certain man was walking along the right side of the Euphrates River when a lion attacked him, a miracle was performed for him, and he was rescued? He came before Rava, who said to him: Every time that you arrive there, to the site of the miracle, recite the blessing, “Blessed…Who performed a miracle for me in this place.” Furthermore, once when Mar, son of Ravina, was walking in the marketplace [risteka] of Meḥoza and a wild camel [gamla peritza] attacked him. The wall cracked open, he went inside it, and he was rescued. Ever since, when he came to the willows he recited: Blessed…Who performed a miracle for me in the willows and with the camel. And, when he came to the marketplace of Meḥoza he recited: Blessed…Who performed a miracle for me with the camel and in the willows, indicating that one recites a blessing even for a miracle that occurs to an individual. The Sages say: On a miracle performed on behalf of the multitudes, everyone is obligated to recite a blessing; on a miracle performed on behalf of an individual, only the individual is obligated to recite a blessing.