What does Genesis 38:9 mean?
But Onan knew the child wouldn’t be considered his, so whenever he slept with Tamar, he made sure she didn’t get pregnant. He didn’t want to give his brother a child. Genesis 38:9 - Modern Text Bible
(Onan refuses his responsibility, acting selfishly and dishonestly.)