Parshas Chayei Sarah · Passuk 25:11
After the death of Avraham, God blessed his son Yitzchok. And Yitzchok settled near Be’er-lachai-roi.
Torah Temimah points to Sotah 14a. E-Daf · Sefaria — Sotah 14a
TT lemma: ויברך אלהים.
[He] comforted him from his mourning — this teaches that it is the way of the Holy One, blessed be He, to comfort mourners.
Category D — Conceptual / ethical inference.
Method — The Gemara derives that comforting mourners is an imitation of Hashem’s conduct: just as Hashem comforted Yitzchok after Avraham’s death, people should comfort those who mourn.
Textual trigger — “Va-yehi acharei mot Avraham va-yevarech Elohim et Yitzchok beno” in Bereishis 25:11, read with the Gemara’s teaching that Hashem comforted Yitzchok from his mourning.
It is a divine attribute to comfort mourners; the blessing of Yitzchok after Avraham’s death is the Torah’s illustration of that attribute and the source for the mitzvah of nichum aveilim.