TT #27 · Parshas Vayeishev · Passuk 38:7
And Er, Yehudah’s first-born, was wicked in the sight of Hashem; and Hashem slew him.
Torah Temimah points to Yevamos 34b.
“Wicked in the sight of Hashem” — Rabbi Yochanan said: that he would plough on the roofs (i.e., practice unnatural relations).
Category B — Textual / lexical / interpretive specification.
Method — Rabbi Yochanan specifies the wicked conduct described by the general phrase “evil in the eyes of Hashem”: Er engaged in unnatural sexual relations, described by the expression “plowing on the roofs.”
Textual trigger — “Va-yehi Er bechor Yehudah ra be-einei Hashem” in Bereishis 38:7; the Gemara explains what the word “ra” means in this context.
Er’s wickedness consisted of unnatural relations. This is the reason Hashem put him to death.