Onan knew the children wouldn’t be his so when he slept with his brother’s wife, he wasted his semen on the ground, so he wouldn’t give his brother children.