But Onan knew that the child would not be his; so whenever he slept with his brother’s wife, he spilled his semen on the ground to avoid providing offspring for his brother.