ברכות ג:א · Berakhot 3:1

מִי שֶׁמֵּתוֹ מוּטָל לְפָנָיו, פָּטוּר מִקְּרִיאַת שְׁמַע, מִן הַתְּפִלָּה וּמִן הַתְּפִלִּין. נוֹשְׂאֵי הַמִּטָּה וְחִלּוּפֵיהֶן וְחִלּוּפֵי חִלּוּפֵיהֶן, אֶת שֶׁלִּפְנֵי הַמִּטָּה וְאֶת שֶׁלְּאַחַר הַמִּטָּה, אֶת שֶׁלַּמִּטָּה צֹרֶךְ בָּהֶן פְּטוּרִים, וְאֶת שֶׁאֵין לַמִּטָּה צֹרֶךְ בָּהֶן חַיָּבִין. אֵלּוּ וָאֵלּוּ פְּטוּרִים מִן הַתְּפִלָּה:
One whose deceased relative is laid out unburied before him is exempt from the recitation of Shema , from the Amida prayer, and from the mitzva to don phylacteries, until the deceased has been buried. With regard to the pallbearers and their replacements and the replacements of their replacements, those located before the bier who have not yet carried the deceased and those located after the bier. Those who are needed to carry the bier are exempt from reciting Shema ; while those who are not needed to carry the bier , are obligated to recite Shema . However, both these and those are exempt from reciting the Amida prayer, since they are preoccupied and are unable to focus and pray with the appropriate intent.

Word-by-word Breakdown (מילים ושרשים)

מִי → One whose שֶׁמֵּתוֹ → deceased [מ - ו - ת]מוּטָל → is laid out [ט - ו - ל]לְפָנָיו → before him [פ - נ - ה]פָּטוּר → is exempt [פ - ט - ר]מִקְּרִיאַת → from the recitation of [ק - ר - א]שְׁמַע → Shema [ש - מ - ע]מִן → from הַתְּפִלָּה → the prayer [פ - ל - ל]וּמִן → and from הַתְּפִלִּין → phylacteries [ת - פ - ל]נוֹשְׂאֵי → The pallbearers of [נ - ש - א]הַמִּטָּה → the bier [מ - ט - ה]וְחִלּוּפֵיהֶן → and their replacements [ח - ל - ף]וְחִלּוּפֵי → and the replacements of [ח - ל - ף]חִלּוּפֵיהֶן → their replacements [ח - ל - ף]אֶת → [referring to] those שֶׁלִּפְנֵי → before [פ - נ - ה]הַמִּטָּה → the bier [מ - ט - ה]וְאֶת → and those שֶׁלְּאַחַר → after [א - ח - ר]הַמִּטָּה → the bier [מ - ט - ה]אֶת → [referring to] those שֶׁלַּמִּטָּה → whom the bier [מ - ט - ה]צֹרֶךְ → has need [צ - ר - כ]בָּהֶן → of them פְּטוּרִים → are exempt [פ - ט - ר]וְאֶת → and those שֶׁאֵין → who are not [א - י - ן]לַמִּטָּה → for the bier [מ - ט - ה]צֹרֶךְ → need [צ - ר - כ]בָּהֶן → of them חַיָּבִין → are obligated [ח - י - ב]אֵלּוּ → These וָאֵלּוּ → and those