Chapter 38 : Verse 9
Onan knew that the seed wouldn’t be his; and when he went in to his brother’s wife, he spilled it on the ground, lest he should give seed to his brother.