סימן רד סעיף ו
אֲבָל אִם לֹא נוֹדַע לוֹ עַד שֶׁבָּא אֶל הָאֲבֵלִים שֶׁהֵם בִּמְקוֹם הַמֵּת אוֹ בִמְקוֹם הַקְּבוּרָה, אֲזַי אִם הָיָה בִּשְׁעַת קְבוּרָה בְּמָקוֹם קָרוֹב, דְהַיְנוּ לֹא יוֹתֵר מִמַּהֲלֵךְ עֶשֶׂר פַּרְסָאוֹת שֶׁהוּא מַהֲלַךְ יוֹם אֶחָד, הֲרֵי זֶה כְּאִלּוּ הָיָה כָּאן בִּשְׁעַת קְבוּרָה וּמוֹנֶה עִמָהֶם. וַאֲפִלּוּ בָּא בְיוֹם שְׁבִיעִי קֹדֶם יְצִיאַת בֵּית הַכְּנֶסֶת, כֵּיוָן שֶׁעֲדַיִן נוֹהֲגִין קְצָת אֲבֵלוּת, מוֹנֶה עִמָהֶם שִׁבְעָה וּשְׁלֹשִׁים. וְדַוְקָא כְּשֶׁגְּדוֹל הַבַּיִת אֶצְלָם שֶׁכֻּלָּם נִגְרָרִין אַחֲרָיו. אֲבָל אִם לֹא הָיָה שָׁם גְּדוֹל הַבַּיִת, מוֹנֶה לְעַצְמוֹ. וְכֵן אִם בָּא מִמָּקוֹם רָחוֹק, אַף עַל פִּי שֶׁיֶשׁ שָׁם גְּדוֹל הַבַּיִת, מִכָּל מָקוֹם מוֹנֶה לְעַצְמוֹ.
However if he was not aware of it, until he came to the mourners, and they are at the place where the death occured, or at the place where he was buried, then if at the time of the burial he was near by, that is not further than ten parasangs, which is a day's walk, it is considered though he was present at the time of the burial and he counts together with them. Even if he came on the seventh day, before the people leave the Synagogue, since the mourners are still observing some mourning, he counts the seven and thirty days of mourning with them. This is so only when the head of the family is with them, as they all follow him, but if the head of the family is not there, he counts on his own, or if he came from far away, even if the head of the family is there, nevertheless he must count on his own.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)