סימן קצו סעיף יד
מִי שֶׁמֵּתוֹ מוּטָל לְפָנָיו בְּלֵיל יוֹם טוֹב שֵׁנִי, מָקוֹם שֶׁנָּהַגוּ לְקָבְרוֹ עַל יְדֵי יִשְֹרָאֵל, נוֹהֵג דִּין אֲנִינוּת אֲפִלּוּ בַּלַּיְלָה, וְאֵינוֹ אוֹמֵר קִדּוּשׁ, וְאֵינוֹ אוֹכֵל בָּשָׂר, וְאֵינוֹ שׁוֹתֶה יָיִן. אֲבָל בְּלֵיל יוֹם טוֹב רִאשׁוֹן, אוֹ אֲפִלּוּ בְּלֵיל יוֹם טוֹב שֵׁנִי בְּמָקוֹם שֶׁנָּהֲגוּ לְהִתְעַסֵּק גַּם בְּיוֹם טוֹב שֵׁנִי דַּוְקָּא עַל יְדֵי גוֹיִם, אֵין לִנְהֹג דִּין אֲנִינוּת בַּלָּיְלָה.
If his dead15See Chapter 203. lies before him on the night of the second day of Yom Tov, when the custom of the community is to bury the deceased using the services of Jews, the mourner is subject to the laws of onein even at night. He therefore should not recite Kiddush, nor should he eat meat or drink wine.16Mishna Berurah writes that many of the later poskim agreed that since it is not customary to have burials at night, the mourner should say Kiddush, pray as always, and is permitted to do everything except to study Torah which is a source of joy. (Mishna Berurah 71:11) However, on the night of the first day of Yom Tov, or even on the night of the second day of Yom Tov, when the custom of the community is that even on the second day of Yom Tov, burial is made only through the services of non-Jews, the mourner is not subject to the laws of onein at night.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)