סימן רכ סעיף ב
שָׁגַג אוֹ הֵזִיד וְלֹא נָהַג אֲבֵלוּת קֹדֶם הָרֶגֶל אוֹ שֶׁנִּקְבַּר הַמֵּת סָמוּךְ לַחֲשֵׁכָה וְלֹא הָיָה יָכוֹל לִנְהוֹג אֲבֵלוּת, אֵין הָרֶגֶל מְבַטֵּל, וְדִינוֹ כְּדִין קוֹבֵר מֵתוֹ בָּרֶגֶל.
If the mourner either inadvertently or intentionally neglected to observe any mourning2If however he observed some aspect of mourning, the Festival does cancel the rest of the mourning (Sha’ar Hatzion 548:18). before the Festival, or if the burial took place close to nightfall, whereby he was unable to observe any mourning, the Festival does not cancel it, and he is subject to the same law as one who buries his dead during a Festival.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)