Genesis 38:9
Genesis 38:9 TPT
Onan, however, did not want to produce a child that would not be his own rightful heir, so whenever he and Tamar had intercourse, he purposely spilled his semen onto the ground to keep her from getting pregnant and having a child that would belong to his dead brother.