סימן קצד סעיף י
הַמְשַׁמֵּר אֶת הַמֵּת אֲפִלּוּ אֵינוֹ מֵתוֹ, פָּטוּר מִקְּרִיאת שְׁמַע וּמִתְּפִלָה וּמִכָּל מִצְוֹת הָאֲמוּרוֹת בַּתּוֹרָה, כִּי הָעוֹסֵק בְּמִצְוָה, פָּטוּר מִמִּצְוָה אַחֶרֶת (וְעַיֵּן לְקַמָּן סִימָן קצו סָעִיף ב). הָיוּ שְׁנַיִם, זֶה מְשַׁמֵר, וְזֶה קוֹרֵא וּמִתְפַּלֵּל.
The person who guards the deceased,7The deceased must be guarded from rodents. See Mishnah Beruch 71:12. even if he is not a mourner, is exempt from Kerias Shema and Shemoneh Esrei, and from all other mitzvos of the Torah,8He is not permitted to be stringent in this matter. Mishnah Berurah, Ibid. for he who is engaged in the performance of a mitzvah is exempt from performing another mitzvah.9This general rule applies only if the second mitzvah involves some extra effort, but if they can both be done without extra effort, both mitzvos should be performed. (Rema 38:8, See Mishnah Berurah.) If there are two two watchmen, [they should alternate] one of them should guard, while the other says Krias Shema and Shemoneh Esrei.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)