Berean Standard Bible (BSB)
What he did was wicked in the sight of the LORD, so He put Onan to death as well.
World English Bible (WEB)
The thing which he did was evil in the sight of Yahweh, and he killed him also.
Strong's King James
And the thing which{H834} he did{H6213}{(H8804)} displeased{H3415}{(H8799)}{H5869} the LORD{H3068}: wherefore he slew{H4191}{(H8686)} him also.
The F.O.G *
The F.O.G Message *
Young's Literal Translation
and that which he hath done is evil in the eyes of Jehovah, and He putteth him also to death.