סימן קצח סעיף יג
כְּשֶׁבָּאִים לְבֵית הַקְּבָרוֹת, מִי שֶׁלֹּא רָאָה אֶת הַקְּבָרִים שְׁלֹשִׁים יוֹם, צָרִיךְ לְבָרֵךְ אֲשֶׁר יָצַר אֶתְכֶם בַּדִּין וְכוּ' (עַיֵּן לְעֵיל סִימָן ס סָעִיף יא), וְאַחַר כָּךְ אוֹמְרִים אַתָּה גִבּוֹר וְכוּ' עַד לְהַחֲיוֹת מֵתִים.
Upon reaching the cemetery, those who have not seen graves in thirty days8Excluding the day in which he last saw a grave and excluding the present day. (Mishnah Berurah 218:11) According to Birkei Yosef, if one sees graves from a window in his house that is near a cemetery, nevertheless when he enters the cemetery he still says the berachah. (See Shaarei Teshuvah Ohr Hachaim 224:9.) If one saw only the tombstones but not the graves, he can still recite the berachah. (Halachah L’Moshe 9.) must say the berachah, "Asher Yatzar Esschem Baddin" etc. ("Who has created you in judgement"), after which, is said: "Attah Gibbor" ("You are mighty") etc. until, "Lehachayos meisim" ("To restore the dead to life").
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)