Berakhot 50a
Rabbi Aḥa the son of Rava questioned this and said to Rav Ashi: Don’t we say during the Passover seder: To He Who performed all of these miracles for our ancestors and for us, using the expression: To He Who? Rav Ashi said to him: There, in the case of miracles performed for our ancestors and for us, it is self-evident that the blessing refers to God. Who performs miracles? The Holy One, blessed be He. In the case of food, however, it is not self-evident, as the host of the meal also provided the food that was eaten.
Megillah 15b
The Gemara continues with an episode associated with a verse in Isaiah. The Attribute of Justice said before the Holy One, Blessed be He: Master of the Universe, how are these, referring to the Jewish people, different from those, the other nations of the world, such that God performs miracles only on behalf of the Jewish people? The Holy One, Blessed be He, said to it: The Jewish people occupied themselves with Torah, whereas the other nations of the world did not occupy themselves with Torah.
Berakhot 54a
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.” And once when Mar, son of Ravina, was walking in a valley of willows and was thirsty for water, a miracle was performed for him and a spring of water was created for him, and he drank. 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.