4 She got pregnant again and had a son named Onan. 5 She had still another son; she named this one Shelah. They were living at Kezib when she had him. 6 Judah got a wife for Er, his firstborn. Her name was Tamar. 7 But Judah's firstborn, Er, grievously offended God and God took his life. 8 So Judah told Onan, "Go and sleep with your brother's widow; it's the duty of a brother-in-law to keep your brother's line alive." 9 But Onan knew that the child wouldn't be his, so whenever he slept with his brother's widow he spilled his semen on the ground so he wouldn't produce a child for his brother. 10 God was much offended by what he did and also took his life.
Matthew Henry's Commentary on Genesis 38:4-10
Chapter Contents
The profligate conduct of Judah and his family.
This chapter gives an account of Judah and his family, and such an account it is, that it seems a wonder that of all Jacob's sons, our Lord should spring out of Judah, John 8:41. What awful examples the Lord proclaims in his punishments, of his utter displeasure at sin! Let us seek grace from God to avoid every appearance of sin. And let that state of humbleness to which Jesus submitted, when he came to put away sin by the sacrifice of himself, in appointing such characters as those here recorded, to be his ancestors, endear the Redeemer to our hearts.