Genesis 38:9

Darby(i) 9 But when Onan knew that the seed should not be his own, it came to pass when he went in to his brother`s wife, that he spilled [it] on the ground, in order to give no seed to his brother.