Comforting the Mourner - Nichum Aveilim
The Godly Imperative to Give Comfort

ואמר רבי חמא ברבי חנינא מאי דכתיב (דברים יג, ה) אחרי ה' אלהיכם תלכו וכי אפשר לו לאדם להלך אחר שכינה והלא כבר נאמר (דברים ד, כד) כי ה' אלהיך אש אוכלה הוא?

אלא להלך אחר מדותיו של הקב"ה

הקב"ה ניחם אבלים דכתיב (בראשית כה, יא) ויהי אחרי מות אברהם ויברך אלהים את יצחק בנו אף אתה נחם אבלים

הקב"ה קבר מתים דכתיב (דברים לד, ו) ויקבר אותו בגיא אף אתה קבור מתים

And Rabbi Chama the son of Rabbi Chanina said, "What is the meaning of the verse, 'After the Eternal, your God, shall you walk (Deut. 13:5)'? Is it possible for one to walk after the Shechina? And isn't it already stated, 'For Eternal your God is a consuming fire (Deut. 4:24)'?

Rather [it means], to follow the middot/character traits of the Holy Bountiful One...

The Holy Bountiful One comforted mourners, as it is written, 'After the death of Abraham, God blessed his son Isaac (Gen. 25:11);' so too you shall comfort mourners.

The Holy Bountiful One buried the dead, as it is written, 'And God buried him in the valley (Deut. 34:6);' so too, you shall bury the dead."

When Not to Offer Comfort

(יח) רבי שמעון בן אלעזר אומר...ואל תנחמנו בשעה שמתו מטל לפניו...

Rabbi Shimon the son of Elazar says: ...Do not comfort them when their dead lie before them...

שבשעת החורבן כביכול היה הקב''ה מתאבל, בקשו מלאכי השרת לנחמו, ורוח הקודש משיבן אל תאיצו לנחמני:

Because at the time of the destruction [of the Temple], as if, the Holy Bountiful One was in mourning. The ministering angels tried to comfort God, but the holy spirit responded to them: Do not try to comfort me.

וכן על תנחמהו בשעה שמתו מוטל לפניו, כי גם בזה כאשר הוא בצער ובאבל גדול אם בא לנחמו הוא מוסיף ומתחזק יותר באבלו כאשר בא לבטל צערו...

And so to, regarding comforting them at a time when their dead is lying before them, for surely this when they grieving, and great mourning. If one comes to comfort them, they would add to and further intensify their mourning when they come to nullify their distress...

The Beginning of Mourning

(א) מֵאֵימָתַי חָל הָאֲבֵלוּת, מִשֶּׁנִּקְבַּר וְנִגְמַר סְתִימַת הַקֶּבֶר בְּעָפָר, מִיָּד מַתְחִיל הָאֲבֵלוּת...

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...

When to Speak to a Mourner

(א) אֵין הַמְנַחֲמִים רַשָּׁאִים לִפְתֹּחַ, עַד שֶׁיִּפְתַּח הָאָבֵל תְּחִלָה.

The comforters are not permitted to begin a conversation [with mourners], until the mourners begins one first.