She’asah Nissim

The Shulchan Aruch writes that if one passes a place where a miracle occurred to him, he recites the blessing of “she’asah li neis ba’makom ha’zeh.” It is clear from the Mishnah Berurah that the miracle in question has to be one that saved him from a potentially fatal situation. According to the Shulchan Aruch, not only does he recite the blessing when he chances on the place of the miracle, but all of the individual’s descendants recite this berachah as well when they pass that very place.
However, the Mishnah Berurah differs somewhat on this ruling. The Mishnah Berurah agrees that all of the individual’s children and grandchildren recite the blessing. However, all other future descendants only recite the berachah if they are alive due to the miracle. For example, if the individual to whom the miracle occurred only had children after the miracle, then all his descendants would recite the blessing. They have gratitude to Hashem for saving their ancestor, for a miracle that enabled them to be alive. Since they derived personal benefit from the miracle, they recite a blessing. However, if the miracle happened after all his children were already born, then only the children and grandchildren recite the blessing. The other descendants are too far removed from the person to whom the miracle occurred. Since they did not derive personal benefit from the miracle, they do not recite the berachah.