Genesis 38:9-11
Wycliffe Bible
9 And he knew that sons should not be born to him; and he entered [in] to the wife of his brother, and shedded his seed into the earth, lest the free children should be born by the name of the dead brother; (But Onan knew that any sons who would be born would not be his; so he slept with his brother’s wife, but he poured out his seed onto the ground, so that no children would be born in the name of his dead brother;)
10 and therefore the Lord smote him (and so the Lord struck him down), for he did (an) abominable thing.
11 Wherefore Judah said to Tamar, his son’s wife, Be thou a widow in the house of thy father, till Shelah my son waxed (until my son Shelah hath grown up); for he dreaded lest also he should die as his brethren (did). And (so) she went, and dwelled in the house of her father.
Read full chapter2001 by Terence P. Noble