Parallel
Genesis 38:10
Westminster Leningrad Codex · Berean Standard Bible
וַיֵּ֛רַע בְּעֵינֵ֥י יְהוָ֖ה אֲשֶׁ֣ר עָשָׂ֑ה וַיָּ֖מֶת גַּם־ אֹתֽוֹ׃
What he did was wicked in the sight of the LORD, so He put Onan to death as well.