Genesis 38:9

9 But Onan knew that the children would not belong to him, so when he was supposed to have sexual relations with Tamar he did not complete the sex act. This made it impossible for Tamar to become pregnant and for Er to have descendants.
California - Do Not Sell My Personal Information  California - CCPA Notice