Genesis 38:10

What he did was wicked in the sight of the Lord, so He put Onan to death as well.
BSB · Berean Standard Bible
And the thing which he did displeased the Lord: wherefore he slew him also.

Note displeased…: Heb. was evil in the eyes of the Lord

KJV · King James Version
The thing which he did was evil in the Lord’s sight, and he killed him also.
WEB · World English Bible
And the thing which he did was evil in the sight of Jehovah: and he slew him also.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

displeased
Heb. was evil in the eyes of.
Numbers 11:1; Numbers 22:34; 2 Samuel 11:27; 1 Chronicles 21:7; Proverbs 14:32; Proverbs 24:18; Jeremiah 44:4; Haggai 1:13
him also
Genesis 46:12; Numbers 26:19