סימן קמא סעיף כא
מִי שֶמֵּת לוֹ מֵת בְּתַעֲנִית אֶסְתֵּר וּבַלַיְלָה הוּא אוֹנֵן קֹדֶם הַקְבוּרָה, יִשְׁמַע קְרִיאַת הַמְּגִלָּה מֵאַחֵר. וְלֹא יֹאכַל בָּשָׂר וְלֹא יִשְׁתֶּה יַיִן, כִּי בַלַיְלָה אֵינוֹ חַיָב בְּמִשְׁתֶּה. וּבַיּוֹם לְאַחַר יְצִיאָה מִבֵּית הַכְּנֶסֶת, קוֹבְרִין אֶת הַמֵּת וְאַחַר כָּךְ יִתְפַּלֵל וְיִקְרָא אֶת הַמְּגִלָּה אוֹ יִשְׁמַע מֵאַחֵר. וְאִם שָׁמַע קְרִיאַת הַמְּגִלָּה קֹדֶם הַקְּבוּרָה, יָצָא. וּמִכָּל מָקוֹם נָכוֹן שֶיַחֲזוֹר וְיִקְרְאָהּ בְּלֹא בְרָכוֹת. וּתְפִלִּין לֹא יַנִּיחַ אֲפִלּו אַחַר הַקְּבוּרָה, כֵּיוָן שֶהוּא יוֹם רִאשׁוֹן בְאֶבְלוֹ. וְאוֹנֵן בַּפּוּרִים בַּיּוֹם, מֻתָּר בְּבָשָׂר וָיָיִן.
If someone lost a close relative on the Fast of Esther and at night he is an onein, since the burial has not yet taken place, he should hear the Megillah read by someone else; and he should not eat meat nor drink wine, since at night feasting is not mandatory. In the daytime, after leaving the synagogue, the dead should be buried. Afterwards he should pray,11However, before the burial he is exempt from the mitzvah to read Kerias Shemah and to pray the Shemoneh Esrei. (Kitzur Shulchan Aruch 196:7) and either read the Megillah himself or hear someone else read it. If he heard the reading of the Megillah before the burial, he has fulfilled his obligation. Nevertheless, it is proper that he read it again without saying the berachos. He should not put on the tefillin even after the burial, because it is the first day of mourning. An onein, on Purim during the daytime, is permitted to eat meat and drink wine.12Mishnah Berurah disagrees with this ruling, maintaining that he is not permitted to eat meat or drink wine even by day. ( Shaar Hatzion 696:28)
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)