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
Other translations

King James Version

And the thing which he did displeased the LORD: wherefore he slew him also.

World English Bible

The thing which he did was evil in the LORD’s sight, and he killed him also.

American Standard Version

And the thing which he did was evil in the sight of Jehovah: and he slew him also.

Geneva Bible 1599

And it was wicked in the eyes of the Lord, which he did: wherefore he slewe him also.

Darby Translation

And the thing which he did was evil in the sight of Jehovah, and he slew him also.

Young's Literal Translation

and that which he hath done is evil in the eyes of Jehovah, and He putteth him also to death.

Bible in Basic English

And what he did was evil in the eyes of the Lord, so that he put him to death, like his brother.

In context

9But Onan knew that the offspring would not belong to him; so whenever he would sleep with his brother’s wife, he would spill his seed on the ground so that he would not produce offspring for his brother.

11Then Judah said to his daughter-in-law Tamar, “Live as a widow in your father’s house until my son Shelah grows up.” For he thought, “He may die too, like his brothers.” So Tamar went to live in her father’s house.

Read Genesis 38