Genesis 38:9 Young's Literal Translation Of The Holy Bible (YLT98)

and 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;

Genesis 38

Genesis 38:7-16