Genesis 38:8-10
Young's Literal Translation8And Judah saith to Onan, `Go in unto the wife of thy brother, and marry her, and raise up seed to thy brother;' 9and Onan knoweth that the seed is not reckoned his; and it hath come to pass, if he hath gone in unto his brother's wife, that he hath destroyed it to the earth, so as not to give seed to his brother; 10and that which he hath done is evil in the eyes of Jehovah, and He putteth him also to death.
Young's Literal Translation (YLT) — Public Domain