Genesis 38:9

38:9 Onan knew that the seed wouldn't be his; and it happened, when he went in to his brother's wife, that he spilled it on the ground, lest he should give seed to his brother.
-World English Bible

Other Translation

38:9 And Onan knew that the seed should not be his; and it came to pass, when he went in unto his brother's wife, that he spilled [it] on the ground, lest that he should give seed to his brother.
-King James Version