דרש ר' שמלאי תורה תחלתה גמילות חסדים וסופה גמילות חסדים תחילתה גמילות חסדים דכתיב ויעש ה' אלהים לאדם ולאשתו כתנות עור וילבישם וסופה גמילות חסדים דכתיב ויקבר אותו בגיא
...One should follow the attributes of the Holy One, Blessed be God...
Just as the Holy One, Blessed be God, consoles mourners, as it is written: “And it came to pass after the death of Abraham, that God blessed Isaac his son” (Genesis 25:11), so too, should you console mourners. Just as the Holy One, Blessed be God, buried the dead, as it is written: “And he was buried in the valley in the land of Moab” (Deuteronomy 34:6), so too, should you bury the dead...
...Rabbi Simlai expounded, The Torah begins with loving-kindness and ends with loving kindness. It begins with loving kindness, as it is written (Genesis 3:21), "And God made for Adam and his wife coats of skin, and he dressed them." It ends with loving kindness, as it is written (Deuteronomy 34:6), and He buried him in a valley."
גמ׳ תנו רבנן בראשונה היו מוליכין בבית האבל עשירים בקלתות של כסף ושל זהב ועניים בסלי נצרים של ערבה קלופה והיו עניים מתביישים התקינו שיהו הכל מביאין בסלי נצרים של ערבה קלופה מפני כבודן של עניים תנו רבנן בראשונה היו משקין בבית האבל עשירים בזכוכית לבנה ועניים בזכוכית צבועה והיו עניים מתביישין התקינו שיהו הכל משקין בזכוכית צבועה מפני כבודן של עניים בראשונה היו מגלין פני עשירים ומכסין פני עניים מפני שהיו מושחרין פניהן מפני בצורת והיו עניים מתביישין התקינו שיהו מכסין פני הכל מפני כבודן של עניים בראשונה היו מוציאין עשירים בדרגש ועניים בכליכה והיו עניים מתביישין התקינו שיהו הכל מוציאין בכליכה מפני כבודן של עניים בראשונה היו מניחין את המוגמר תחת חולי מעים מתים והיו חולי מעים חיים מתביישין התקינו שיהו מניחין תחת הכל מפני כבודן של חולי מעים חיים בראשונה היו מטבילין את הכלים על גבי נדות מתות והיו נדות חיות מתביישות התקינו שיהו מטבילין על גבי כל הנשים מפני כבודן של נדות חיות בראשונה מטבילין על גבי זבין מתים והיו זבין חיים מתביישין התקינו שיהו מטבילין על גב הכל מפני כבודן של זבין חיים בראשונה היתה הוצאת המת קשה לקרוביו יותר ממיתתו עד שהיו קרוביו מניחין אותו ובורחין עד שבא רבן גמליאל ונהג קלות ראש בעצמו ויצא בכלי פשתן ונהגו העם אחריו לצאת בכלי פשתן אמר רב פפא והאידנא נהוג עלמא אפילו בצרדא בר זוזא:
GEMARA: The Sages taught the following baraita: At first, the meal after the burial would be brought to the house of the mourner in various ways. The wealthy would bring the meal in baskets of silver and gold, and the poor would bring it in baskets of peeled willow branches. And the poor were embarrassed, as everyone would see that they were poor.The Sages instituted that everyone should bring the meal in baskets of peeled willow branches, due to the honor of the poor. The Sages taught a similar baraita: At first, they would serve wine in the house of the mourner during the first meal after the burial; the wealthy would do so in cups made from white glass, and the poor would serve this wine in cups of colored glass. And the poor were embarrassed, as everyone would see that they were poor. The Sages instituted that all should serve drinks in the house of the mourner in colored glass cups, due to the honor of the poor. Furthermore, at first they would uncover the faces of the wealthy who passed away and cover the faces of the poor,because their faces were blackened by famine. And the poor were embarrassed because they were buried in a different manner. The Sages instituted that everyone’s face should be covered, due to the honor of the poor. Additionally, at first the wealthy would take the deceased out for burial on a dargash, and the poor would take the deceased out on a plain bier made from poles that were strapped together, and the poor were embarrassed. The Sages instituted that everyone should be taken out for burial on a plain bier, due to the honor of the poor. Similarly, at first they would place incense under the beds of those who died with an intestinal disease, because the body emitted an especially unpleasant odor. And those who were alive with an intestinal disease were embarrassed when they understood that they, too, would be treated in this manner after their death, and that everyone would know the cause of their death. The Sages instituted that incense should be placed under everyone, due to the honor of those with an intestinal disease who were still living. Moreover, at first they would ritually immerse all the utensils that had been used by women who died while menstruating, which had thereby contracted ritual impurity. And due to this, the living menstruating women were embarrassed. The Sages instituted that the utensils that had been used by all dying women must be immersed, due to the honor of living menstruating women. And, at first they would ritually immerse all the utensils that had been used by zavin, men suffering from gonorrhea, who died, as the utensils had thereby contracted ritual impurity. And due to this the living zavin felt embarrassed. The Sages instituted that the utensils that had been used by all men must be immersed, due to the honor of the living zavin. Likewise, at first taking the dead out for burial was more difficult for the relatives than the actual death, because it was customary to bury the dead in expensive shrouds, which the poor could not afford. The problem grew to the point that relatives would sometimes abandon the corpse and run away. This lasted until Rabban Gamliel came and acted with frivolity, meaning that he waived his dignity, by leaving instructions that he be taken out for burial in linen garments. And the people adopted this practice after him and had themselves taken out for burial in linen garments. Rav Pappa said: And nowadays, everyone follows the practice of taking out the dead for burial even in plain hemp garments [tzerada] that cost only a dinar.
אלא להלך אחר מדותיו של הקב"ה... הקב"ה ניחם אבלים דכתיב (בראשית כה, יא) ויהי אחרי מות אברהם ויברך אלהים את יצחק בנו אף אתה נחם אבלים הקב"ה קבר מתים דכתיב (דברים לד, ו) ויקבר אותו בגיא אף אתה קבור מתים...
One should follow the attributes of the Holy One, Blessed be God...
Just as the Holy One, Blessed be God, consoles mourners, as it is written: “And it came to pass after the death of Abraham, that God blessed Isaac his son” (Genesis 25:11), so too, should you console mourners. Just as the Holy One, Blessed be God, buried the dead, as it is written: “And he was buried in the valley in the land of Moab” (Deuteronomy 34:6), so too, should you bury the dead...
אין המנחמים רשאים לפתוח עד שיפתח האבל תחלה והאבל מיסב בראש וכיון שנענע האבל בראשו בענין שנראה שפוטר את המנחמים אינם רשאים לישב אצלו: (אין אבל או חולה חייבים לעמוד אפילו מפני נשיא): (פ' א"מ):
(יח) רבי שמעון בן אלעזר אומר...ואל תנחמנו בשעה שמתו מטל לפניו...
Rabbi Shimon the son of Elazar says: ...Do not comfort them when their dead lie before them...
(א) מֵאֵימָתַי חָל הָאֲבֵלוּת, מִשֶּׁנִּקְבַּר וְנִגְמַר סְתִימַת הַקֶּבֶר בְּעָפָר, מִיָּד מַתְחִיל הָאֲבֵלוּת...
From when does the period of mourning begin? From when the dead is buried and the filling of the grave with earth is finished, immediately the period of mourning begins...
(א) אֵין הַמְנַחֲמִים רַשָּׁאִים לִפְתֹּחַ, עַד שֶׁיִּפְתַּח הָאָבֵל תְּחִלָה.
The comforters are not permitted to begin a conversation [with mourners], until the mourners begins one first.