Genesis 38:10
What he did was wicked in the sight of the LORD, so He put Onan to death as well.
Berean Standard Bible
Coming soon to the App Store
And the thing which he did displeased the LORD: wherefore he slew him also.
The thing which he did was evil in the LORD’s sight, and he killed him also.