סימן רו סעיף ח
מִי שֶׁשָּׁמַע לְאַחַר הָרֶגֶל שֶׁמֵּת לוֹ מֵת קֹדֶם הָרֶגֶל, אַף עַל גַּב דִּלְאוֹתָן שֶׁנָּהֲגוּ אֲבֵלוּת קֹדֶם הָרֶגֶל בָּא הָרֶגֶל וְהִפְסִיק, מִכָּל מָקוֹם לְדִידֵהּ כֵּיוָן שֶׁלֹּא נָהַג כְּלָל קֹדֶם הָרֶגֶל, כֹּל שֶׁשָּׁמַע אֲפִלּוּ בַיוֹם הַשְּׁלֹשִׁים מִיּוֹם הַקְּבוּרָה, הֲוֵי אֶצְלוֹ שְׁמוּעָה קְרוֹבָה, וְצָרִיךְ לִנְהוֹג שִׁבְעָה וּשְׁלֹשִׁים.
If one found out after Yom Tov that a relative had died before Yom Tov, although for those who observed mourning before Yom Tov, the Yom Tov cancels the remaining days, nevertheless, since he did not observe any mourning before Yom Tov, the remaining days are not cancelled. [In such a case] if he received the news even on the thirtieth day after the burial, it is timely news for him, and he must observe the seven and thirty-day periods of mourning.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)