Genesis 38:8-9

Rotherham(i) 8 Then said Judah to Onan, Go in unto thy brother’s wife, and fulfill the duty of a brother–in–law unto her,––and raise up seed, to thy brother. 9 And Onan knew that the seed would not be his,––and so, although he did go in unto his brother’s wife, yet made he waste upon the ground, so as not to give seed to his brother.