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. Genesis 38:9
Trivia: In Genesis 22, Why did God bless Abraham?