שבת כג:ד · Shabbat 23:4
מַחְשִׁיכִין עַל הַתְּחוּם לְפַקֵּחַ עַל עִסְקֵי כַלָּה, וְעַל עִסְקֵי הַמֵּת לְהָבִיא לוֹ אָרוֹן וְתַכְרִיכִין. גּוֹי שֶׁהֵבִיא חֲלִילִין בְּשַׁבָּת, לֹא יִסְפֹּד בָּהֶן יִשְׂרָאֵל, אֶלָּא אִם כֵּן בָּאוּ מִמָּקוֹם קָרוֹב. עָשׂוּ לוֹ אָרוֹן וְחָפְרוּ לוֹ קֶבֶר, יִקָּבֵר בּוֹ יִשְׂרָאֵל, וְאִם בִּשְׁבִיל יִשְׂרָאֵל, לֹא יִקָּבֵר בּוֹ עוֹלָמִית:
One may wait for nightfall at the Shabbat boundary to attend to the needs of a bride and the needs of a corpse, such as to bring him a coffin and shrouds. If a gentile brought flutes on Shabbat in order to play music during the eulogy and funeral procession, a Jew may not eulogize with them as accompaniment, unless they were brought from a nearby location within the Shabbat boundary and transporting them did not include any violation of halakha . If gentiles made someone a coffin and dug him a grave on Shabbat, and they then changed their minds and decided to give it to someone else, a Jew may be buried in it. However, if it was initially intended for a Jew, a Jew may never be buried in it.
Word-by-word Breakdown (מילים ושרשים)
מַחְשִׁיכִין → One may wait for nightfall [ח - ש - כ]עַל → at הַתְּחוּם → the Shabbat boundary [ת - ח - ם]לְפַקֵּחַ → to attend to [פ - ק - ח]עַל → to עִסְקֵי → the needs of [ע - ס - ק]כַלָּה → a bride [כ - ל - ה]וְעַל → and to עִסְקֵי → the needs of [ע - ס - ק]הַמֵּת → the corpse [מ - ו - ת]לְהָבִיא → to bring [ב - ו - א]לוֹ → him אָרוֹן → a coffin [א - ר - ן]וְתַכְרִיכִין → and shrouds [ת - כ - ר - כ]גּוֹי → A gentile [ג - י - ה]שֶׁהֵבִיא → who brought [ב - ו - א]חֲלִילִין → flutes [ח - ל - ל]בְּשַׁבָּת → on Shabbat [ש - ב - ת]לֹא → may not יִסְפֹּד → eulogize [ס - פּ - ד]בָּהֶן → with them יִשְׂרָאֵל → a Jew [י - ש - ר - א - ל]אֶלָּא → unless אִם → if כֵּן → so [כ - ו - ן]בָּאוּ → they came [ב - ו - א]מִמָּקוֹם → from a place [מ - ק - ם]קָרוֹב → nearby [ק - ר - ב]עָשׂוּ → If they made [ע - ש - ה]לוֹ → for him אָרוֹן → a coffin [א - ר - ן]וְחָפְרוּ → and dug [ח - פּ - ר]לוֹ → for him קֶבֶר → a grave [ק - ב - ר]יִקָּבֵר → may be buried [ק - ב - ר]