Genesis 38:10

10 But the LORD considered it evil for Onan to deny a child to his dead brother. So the LORD took Onan’s life, too.

Genesis 38:10 Meaning and Commentary

Genesis 38:10

And the thing which he did displeased the Lord
Being done out of envy to his brother, and through want of affection to the memory of his name; and it may be out of covetousness to get his estate into his own hands, and especially as it frustrated the end of such an usage of marrying a brother's wife; which appears to be according to the will of God, since it afterwards became a known law of his; and it was the more displeasing, as it was not only a check upon the multiplication of Abraham's seed as promised, but since the Messiah was to come from Judah. This was doing all to hinder it that lay in his power: wherefore he slew him also;
in like manner as he had slain his brother, ( Genesis 38:7 ) .

Genesis 38:10 In-Context

8 Then Judah said to Er’s brother Onan, “Go and marry Tamar, as our law requires of the brother of a man who has died. You must produce an heir for your brother.”
9 But Onan was not willing to have a child who would not be his own heir. So whenever he had intercourse with his brother’s wife, he spilled the semen on the ground. This prevented her from having a child who would belong to his brother.
10 But the LORD considered it evil for Onan to deny a child to his dead brother. So the LORD took Onan’s life, too.
11 Then Judah said to Tamar, his daughter-in-law, “Go back to your parents’ home and remain a widow until my son Shelah is old enough to marry you.” (But Judah didn’t really intend to do this because he was afraid Shelah would also die, like his two brothers.) So Tamar went back to live in her father’s home.
12 Some years later Judah’s wife died. After the time of mourning was over, Judah and his friend Hirah the Adullamite went up to Timnah to supervise the shearing of his sheep.
Holy Bible. New Living Translation copyright© 1996, 2004, 2007, 2013 by Tyndale House Foundation. Used by permission of Tyndale House Publishers Inc., Carol Stream, Illinois 60188. All rights reserved.