Onan knew that the children from this union would not belong to him. He had sexual relations with Tamar, but he did not allow himself to stay inside her.