Genesis 38:7-10 (DRC)
7 And Her, the first born of Juda, was wicked in the sight of the Lord: and was slain by him.
8 Juda, therefore, said to Onan his son: Go in to thy brother's wife and marry her, that thou mayst raise seed to thy brother.
9 He knowing that the children should not be his, when he went in to his brother's wife, he spilled his seed upon the ground, lest children should be born in his brother's name.
10 And therefore the Lord slew him, because he did a detestable thing:
About Genesis 38: This chapter sits between Joseph’s story and the later history of Jacob’s family. It moves the focus from Joseph to his brother Judah. The setting is Canaan, where Judah leaves his brothers and marries a local woman. He has three sons. Two die because they are wicked in God’s eyes. Judah keeps his daughter-in-law Tamar as a widow, waiting for his third son Shelah to grow up. But he fears losing Shelah too, so he does not give her to him as the law requires. This is a failure of duty and faith. Read the study notes
4 verses · Compare in parallel · Read all of Genesis 38