In context
5She bore still another son and named him Shelah; he was born at Kezib. 6Judah took a wife for Er, his firstborn; her name was Tamar. 7But Er, Judah’s firstborn, was wicked in Yahweh’s sight, and Yahweh put him to death. 8Then Judah said to Onan, “Sleep with your brother’s wife and fulfill your duty as brother-in-law to her, to raise up offspring for your brother.” 9But Onan knew the offspring would not be his, so whenever he slept with his brother’s wife, he spilled his seed on the ground so as not to give offspring to his brother.
