שולחן ערוך, יורה דעה שע״ו

Shulchan Arukh, Yoreh De'ah 376

מנהג המנחמים ודין מת שאין לו מנחמים. ובו ד' סעיפים:
אין המנחמים רשאים לפתוח עד שיפתח האבל תחלה והאבל מיסב בראש וכיון שנענע האבל בראשו בענין שנראה שפוטר את המנחמים אינם רשאים לישב אצלו: (אין אבל או חולה חייבים לעמוד אפילו מפני נשיא): (פ' א"מ):
The comforters are not permitted to open [conversation] until the mourner opens first; and the mourner reclines at the head [of the mourner's meal]; and as soon as the mourner nods his head in a manner from which it is indicative that he dismisses the comforters, they are not permitted to remain seated by him. A mourner or a sick person are not required to rise even on account of a Nasi.
הבא לכבד את חבירו ולקום מפניו אומר לו שב אלא א"כ הוא אבל או חולה דמשמע שב באבילות שלך שב בחולי שלך: הגה לא יאמר אדם לא נפרעתי כפי מעשי או כיוצא בדברים אלו שאל יפתח פיו לשטן (כן משמע בפרק מי שמתו ובהגהות אלפסי שם) ואל יאמר אדם לאבל מה לך לעשות כי אי אפשר לשנות שזהו כגידוף דמשמע הא אם אפשר לשנות היה עושה אלא יקבל עליו גזירת הש"י מאהבה (נ"י פ' שור שנגח דמשמע כן מגמרא):
To one who comes to show honour to his friend and to rise at his presence, [the latter] should say, 'Be seated,' unless he is a mourner or a sick person, — for [such a statement] would imply, 'Be seated in your mourning,' or 'Be seated in your illness.' Gloss: A man should not say, 'I was not punished in accordance with my [evil] deeds,' or anything similar to these words, for a man should never utter anything in such a way as to give Satan an opening. Neither should a man say to a mourner, 'What could you have done; it is impossible to change [God's verdict],' for this is regarded as blasphemy, since it implies that were it possible to change [the verdict] he would have done so; but one should accept God's decree out of love.
מת שאין לו אבלים להתנחם באים עשרה בני אדם כשרים ויושבים במקומו כל ז' ימי האבלות ושאר העם מתקבצים עליהם ואם לא היו שם עשרה קבועים בכל יום ויום מתקבצים עשרה משאר העם ויושבים במקומו: הגה ולא ראיתי נוהגין כן וכתוב במהרי"ל נוהגים להתפלל בעשרה כל ז' במקום שנפטר שם האדם והיינו על אדם שלא הניח קרובים ידועים להתאבל עליו אבל יש לו בשום מקום שמתאבלים עליו אין צריך (וכזה ראוי לנהוג):
A corpse who leaves no mourners to be comforted,— [the law is that] ten worthy people come and sit in his place throughout the seven days of mourning and the rest of the people assemble unto them. If ten permanent people were not present there daily, ten of the rest of the people assemble and sit in his place. Gloss: However, I have not seen this custom in practice. In the [writings] of Maharil it is stated that it is customary to recite the Tefillah in [the presence of] ten [males] throughout the seven [days of mourning] at the place where the person died, i.e., for a person who left no known [near-of-kin] to observe mourning rites for him; but if he has [near-of-kin] somewhere who observe mourning rites for him, one is not required [to do this]. And this is the practice which is proper to adopt.
עכשיו נוהגים שאחר שנגמר סתימת הקבר מעפר (או לאחר שהפך האבל פניו מן המת) חולצין מנעל וסנדל ומרחיקין מעט מבית הקברות ואומרים קדיש דהוא עתיד לחדתא עלמא ואחר כך תולשין עפר ותולשין עשבים ומשליכים אחר גוום ורוחצין ידיהם במים: הגה י"א שיושבים ז"פ מפני שהרוחות מלוות אותו וכל זמן שיושבין בורחין ממנו (מהרי"ל בתשובה כ"ג בשם י"א) ובמדינות אלו לא נהגו לישב רק ג"פ אחר שרחצו הידים ואומרים כל פעם ויהי נועם וגו' יושב בסתר וגו' וכשנקבר המת ביום טוב יכולין לישב כך ג"פ כמו בחול (מ"כ בהגהות מנהגים) וה"ה אם נקבר סמוך לשבת עושין כן בשבת ונהגו להקפיד אם יכנס אדם לבית אחר קודם שירחץ וישב ג"פ ומנהג אבותינו תורה (שם במהרי"ל) ונמצא במדרשות לומר קדיש על אב (כל בו וריב"ש בשם תנחומא וספרי ובחיי בשם מסכת כלה וב"י בשם הזוהר ובא"ז בשם תנא דבי אליהו רבא) ע"כ נהגו לומר על אב ואם קדיש בתרא י"ב חדש וכן נהגו להפטיר בנביא ולהתפלל ערבית במוצאי שבתות שהוא הזמן שחוזרין הנשמות לגיהנם וכשהבן מתפלל ומקדש ברבים פודה אביו ואמו מן הגיהנם (כל בו בשם הגהות) ונהגו לומר קדיש על האם אע"פ שהאב חי עדיין אינו בידו למחות לבנו שלא יאמר קדיש על אמו (סברת הב"י ע"פ המנהג) מצוה להתענות ביום שמת אב או אם (ריב"ש וכל בו) . ג' אחין ואיש נכרי הג' אחין נוטלין ג' קדישין והאחר נוטל קדיש אחד ונהגו שאם מגיע לאדם יום שמת בו אביו ואמו שאומרים עליהם קדיש יתום לעולם ומי שיודע להתפלל כל התפלה מתפלל ואם יש אבלים אחרים נהגו שתוך שבעה לאבלם הם קודמים ואין לו קדיש כלל תוך ל' יש לו קדיש א' לאחר ל' כל הקדישין של אותו היום הם שלו ומונין שבעה ול' מיום הקבורה אע"פ שלא שמע האבל מיד (במהרי"ל) ואם נכרי הוא כא' מבני העיר לענין קדיש זו הולכים אחר המנהג (אגור בשם מהרי"ל) ואין מקום לקדיש זו אלא על אב ואם בלבד אבל לא בשאר קרובים (ב"ז) ואם אין בב"ה אבל על אביו ואמו אומר אותו קדיש מי שאין לו אב ואם בעד כל מתי ישראל (שם) ויש מקומות שנהגו ששאר קרובים אומרים קדיש על קרוביהם כשאין אבלים על אביהם ואמם ויש מקומות שאפילו יש אבלים על אביהם ואמם אומרים שאר קרובים אלא שעושים פשרה ביניהם שאין אומרים כל כך קדישים כמו האבלים על אב ואם (מהרי"ק שורש מ"ד) והולכים בכל זה אחר המנהג ובלבד שיהא מנהג קבוע בעיר והאבלים אומרים קדיש אפילו בשבת ויו"ט (ב"ז בשם ר"י מקורביי"ל) אבל לא נהגו להתפלל בשבת ויו"ט (כן הוא בתשובת מהרי"ל) אע"פ שאין איסור בדבר אבל בימות החול מי שיודע להתפלל יתפלל ויותר מועיל מקדיש יתום שלא נתקן אלא לקטנים ומי שאינו יודע להתפלל כל התפלה יתפלל למנצח ובא לציון וכו' (ב"ז) ונהגו שאין אומרים קדיש ותפלה רק י"א חדשים כדי שלא יעשו אביהם ואמם רשעים כי משפט רשע י"ב חדש ואם היו אבלים כאן ובאו אח"כ אבלים אחרים השניים יש להם הקדישים והתפלות כל ל' יום מיום הקבורה אע"פ שלא שמעו. י"א דמומר שנהרג ביד עובדי כוכבים בניו אומרים עליו קדיש (הרד"כ בית י"א ובב"ז) (וע"ל סימן ש"מ):
Nowadays it is customary that after the closing of the grave with earth has been completed, — or after the mourner turned his face from the corpse, — they [the mourners] remove [their] shoes and sandals, and keep away a short [distance] from the burial grounds and [then] say Kaddish, [viz., 'May His great Name be magnified and sanctified in] the world that He will create anew etc.,' after which they detach earth and pluck grass [out of the ground] and cast it behind their back and wash their hands with water. Gloss: Some say that [after burial] they sit down seven times because the [evil] spirits follow him, and so long as they sit down, they flee from him; and in these countries the custom prevails to sit down only three times after they have washed their hands, and each time [they sit down] they say, 'And let the graciousness of the Lord our God be upon us etc.' 'O thou that dwellest in the covert of the most High etc..' When the corpse is buried on a Festival, one may six thus three times as on a weekday. Likewise, if one was buried close to [the advent of] the Sabbath, this is done [even] on the Sabbath. It is the adopted practice to be particular with one lest he enter another house before he washes [his hands] and sits down three times, and the custom of our ancestors is [considered binding] law. In the Midrashim it is found that one should recite Kaddish for a father. Therefore, it is the adopted practice to recite the last Kaddish [concluding the services] twelve months for a father and mother. Likewise, is it common usage [for a mourner] to recite the Haftarah in the Prophets and to lead the services at the evening prayers at the conclusion of the Sabbath, which is the time when the souls [of the departed] return to Gehenna; and when the [mourning] son leads the Services and sanctifies [the name of God] in public, he [thereby] redeems his father and mother from Gehenna. It is the adopted usage to recite Kaddish for one's mother although the father is still living, [and the latter] has no right to prevent his son from reciting Kaddish for his mother. It is a religious duty to fast on the day that one's father and mother died. [In the case of] three brothers and a stranger [with respect to the rules of precedence concerning the recital of Kaddish, — the law is that] the three brothers get [priority to recite] three Kaddishim, and the other gets [priority to recite] one Kaddish. It is customary that when the day on which one's father or mother died, arrives, one always recites the mourner's Kaddish for them. One who knows how to lead the entire Service should do so. However, if there are other mourners [present], it is customary that within the seven days of their mourning [period], they take precedence and he has no [priority] rights [regarding] the Kaddish at all; if within [their] thirty [days of mourning], he has [priority rights to recite] one Kaddish; [if] after [their] thirty [days of mourning], — all the Kaddishim of that day belong to him. The seven and thirty [days of mourning] are counted from the day of burial, even if [the mourner] had not heard [the death report] forthwith. Whether a stranger is regarded as one of the townspeople with respect to this Kaddish, we follow the accepted practice. This [above-mentioned] Kaddish applies only [where it is recited] for a father and mother alone, but not [in the case of] other near-of-kin. If there is no one present in the Synagogue who is in mourning for one's father or mother, that Kaddish may be recited by one who has no father and mother on behalf of all the dead of Israel. There are localities where it is customary that other [surviving] near-of-kin recite Kaddish for their relations where [the latter leave] no parental mourners; and there are localities where even if there are parental mourners, the other [surviving] near-of-kin [may also] recite [the Kaddish], only that they [the latter] make a mutual agreement not to recite as many Kaddishim as would the mourners for a father and mother [proper]. In this entire [matter] we follow the accepted custom, provided the custom is fixed in the [particular] city. The mourners recite Kaddish even on the Sabbath and Festivals, but it is not customary for them to lead the services on the Sabbath and Festivals, although there exists no prohibition against [this] matter. However, during the weekdays, whoever knows how to lead the Services, should do so, and [this] is [even] more efficacious than [reciting] the mourner's Kaddish, which was instituted [originally] only for minors. And one who knows not how to lead the entire Service, should lead the Service [at least] from [the section beginning with] 'For the chief musician etc.,' 'And a redeemer shall come to Zion etc.' It is the adopted custom to recite Kaddish and lead the Services only for eleven months so that [children] should not consider their father and mother wicked, for the judgment of a wicked person [in Gehenna lasts] twelve months. If there were mourners present here, and later other mourners came, — the latter have [priority with respect to] the Kaddish and [leading] the Services throughout the thirty days [of their mourning] from the day of burial, although [the latter] did not hear [the death report until later]. Some say that [in the case of] an apostate Jew who was murdered by heathens, [the law is that] his children recite Kaddish for him.

Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 4 se'ifim