TT #35 · Parshas Vayeira · Passuk 18:19
For I have known him, in order that he may command his children and his household after him to keep the way of Hashem by doing righteousness and justice, so that Hashem may bring upon Avraham that which He has spoken concerning him.
Torah Temimah points to Yoma 38b. E-Daf · Sefaria — Yoma 38b
TT lemma: כי ידעתיו.
“For I have known him.” Rabbi Elazar said: From the blessing of the righteous you learn the curse of the wicked. As it is written, “For I have known him… to do righteousness and justice,” and immediately afterward it is written, “And Hashem said, ‘The outcry of Sedom and Amorah is great.’”
Category C — Contextual / literary / narrative method.
Method — Rabbi Elazar derives the fate of the wicked from the immediate narrative contrast: Hashem’s blessing of Avraham is followed directly by the announcement that the outcry of Sedom and Amorah is great.
Textual trigger — “Ki yeda‘tiyo” and the promise concerning Avraham in Bereishis 18:19, immediately followed by “za‘akat Sedom va-Amorah ki rabbah” in Bereishis 18:20.
From the blessing attached to Avraham’s righteousness one learns the corresponding judgment upon the wicked of Sedom.