But Onan knew that if he slept with Tamar and she had a baby, that baby would belong to the brother that died and it would not belong to him. So every time he and Tamar slept together, he would stop half way. He did this so that his brother would not have children.