Genesis 38
Young's Literal Translation
1And it cometh to pass, at that time, that Judah goeth down from his brethren, and turneth aside unto a man, an Adullamite, whose name [is] Hirah;
2and Judah seeth there the daughter of a man, a Canaanite, whose name [is] Shuah, and taketh her, and goeth in unto her.
3And she conceiveth, and beareth a son, and he calleth his name Er;
4and she conceiveth again, and beareth a son, and calleth his name Onan;
5and she addeth again, and beareth a son, and calleth his name Shelah; and he was in Chezib in her bearing him.
6And Judah taketh a wife for Er, his first-born, and her name [is] Tamar;
7and Er, Judah's first-born, is evil in the eyes of Jehovah, and Jehovah doth put him to death.
8And Judah saith to Onan, 'Go in unto the wife of thy brother, and marry her, and raise up seed to thy brother;'
9and Onan knoweth that the seed is not [reckoned] his; and it hath come to pass, if he hath gone in unto his brother's wife, that he hath destroyed [it] to the earth, so as not to give seed to his brother;
10and that which he hath done is evil in the eyes of Jehovah, and He putteth him also to death.
11And Judah saith to Tamar his daughter-in-law, 'Abide a widow at thy father's house, till Shelah my son groweth up;' for he said, 'Lest he die — even he — like his brethren;' and Tamar goeth and dwelleth at her father's house.
12And the days are multiplied, and the daughter of Shuah, Judah's wife, dieth; and Judah is comforted, and goeth up unto his sheep-shearers, he and Hirah his friend the Adullamite, to Timnath.