סימן ר סעיף ז
מֵת בְּלֵיל יוֹם טוֹב שֵׁנִי, דְּמִתְעַסְּקִין בּוֹ יִשְֹרָאֵל אִם אֵין גּוֹי, מַשְׁכִּימִין עֲשָׂרָה בְּנֵי אָדָם, וְקוֹבְרִים אוֹתוֹ בְּשָׁעָה שֶׁשְּׁלִיחַ הַצִּבּוּר אוֹמֵר פִּיּוּטִים. וְאִם הוּא אָדָם חָשׁוּב שֶׁרַבִּים צְרִיכִין לְלַוּוֹתוֹ, קוֹבְרִין אוֹתוֹ לְאַחַר הַיְצִיאָה מִבֵּית הַכְּנֶסֶת קֹדֶם הָאֲכִילָה, דְאִיתָא בַּמִּדְרָשׁ, לֹא תֹאכְלוּ עַל הַדָּם, שֶׁאָסוּר לֶאֱכֹל סְעוּדָה קְבוּעָה קֹדֶם שֶׁנִּקְבַּר הַמֵּת. וְאִם אִי אֶפְשָׁר לְהָכִין כָּל צָרְכֵי הַקְּבוּרָה עַד הַזְּמַן הַהוּא, קוֹבְרִין אוֹתוֹ לְאַחַר הָאֲכִילָה.
If one dies on the night of the second day of Yom Tov, when it is permitted for Jews to attend to the burial if there are no non-Jews to do so, ten men should rise in the morning and bury him at the time the Chazan recites the Piyutim [festival hymns]. If he was a distinguished person, so that a multitude of people are obligated to accompany him, he should be buried after people leave the synagogue before the meal is eaten, for the Midrash states, "(It is written) 'You shall not eat with the blood' (which signifies) that it is forbidden to eat a regular meal before the deceased is buried." If it is impossible to make all the preparations for the burial by that time, he should be buried after the meal.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)