Genesis 38:9
New International Reader's Version Bible (NIRV)But Onan knew that the children wouldn’t belong to him. So every time he slept with his brother’s wife, he spilled his semen on the ground. He did it so he wouldn’t provide children for his brother.