# Genesis 38 
<a id="1" name="1"></a>
1. It happened at that time that Judah went down from his brothers and turned aside to a certain Adullamite, whose name was Hirah.
<a id="2" name="2"></a>
2. There Judah saw the daughter of a certain Canaanite whose name was Shua. He took her and went in to her,
<a id="3" name="3"></a>
3. and she conceived and bore a son, and he called his name Er.
<a id="4" name="4"></a>
4. She conceived again and bore a son, and she called his name Onan.
<a id="5" name="5"></a>
5. Yet again she bore a son, and she called his name Shelah. Judah was in Chezib when she bore him. 
<a id="6" name="6"></a>
6. And Judah took a wife for Er his firstborn, and her name was Tamar.
<a id="7" name="7"></a>
7. But Er, Judah’s firstborn, was wicked in the sight of the LORD, and the LORD put him to death.
<a id="8" name="8"></a>
8. Then Judah said to Onan, “Go in to your brother’s wife and perform the duty of a brother-in-law to her, and raise up offspring for your brother.”
<a id="9" name="9"></a>
9. But Onan knew that the offspring would not be his. So whenever he went in to his brother’s wife he would waste the semen on the ground, so as not to give offspring to his brother.
<a id="10" name="10"></a>
10. And what he did was wicked in the sight of the LORD, and he put him to death also.
<a id="11" name="11"></a>
11. Then Judah said to Tamar his daughter-in-law, “Remain a widow in your father’s house, till Shelah my son grows up”—for he feared that he would die, like his brothers. So Tamar went and remained in her father’s house. 
<a id="12" name="12"></a>
12. In the course of time the wife of Judah, Shua’s daughter, died. When Judah was comforted, he went up to Timnah to his sheepshearers, he and his friend Hirah the Adullamite.
<a id="13" name="13"></a>
13. And when Tamar was told, “Your father-in-law is going up to Timnah to shear his sheep,”
<a id="14" name="14"></a>
14. she took off her widow’s garments and covered herself with a veil, wrapping herself up, and sat at the entrance to Enaim, which is on the road to Timnah. For she saw that Shelah was grown up, and she had not been given to him in marriage.
<a id="15" name="15"></a>
15. When Judah saw her, he thought she was a prostitute, for she had covered her face.
<a id="16" name="16"></a>
16. He turned to her at the roadside and said, “Come, let me come in to you,” for he did not know that she was his daughter-in-law. She said, “What will you give me, that you may come in to me?”
<a id="17" name="17"></a>
17. He answered, “I will send you a young goat from the flock.” And she said, “If you give me a pledge, until you send it—”
<a id="18" name="18"></a>
18. He said, “What pledge shall I give you?” She replied, “Your signet and your cord and your staff that is in your hand.” So he gave them to her and went in to her, and she conceived by him.
<a id="19" name="19"></a>
19. Then she arose and went away, and taking off her veil she put on the garments of her widowhood. 
<a id="20" name="20"></a>
20. When Judah sent the young goat by his friend the Adullamite to take back the pledge from the woman’s hand, he did not find her.
<a id="21" name="21"></a>
21. And he asked the men of the place, “Where is the cult prostitute who was at Enaim at the roadside?” And they said, “No cult prostitute has been here.”
<a id="22" name="22"></a>
22. So he returned to Judah and said, “I have not found her. Also, the men of the place said, ‘No cult prostitute has been here.’”
<a id="23" name="23"></a>
23. And Judah replied, “Let her keep the things as her own, or we shall be laughed at. You see, I sent this young goat, and you did not find her.” 
<a id="24" name="24"></a>
24. About three months later Judah was told, “Tamar your daughter-in-law has been immoral. Moreover, she is pregnant by immorality.” And Judah said, “Bring her out, and let her be burned.”
<a id="25" name="25"></a>
25. As she was being brought out, she sent word to her father-in-law, “By the man to whom these belong, I am pregnant.” And she said, “Please identify whose these are, the signet and the cord and the staff.”
<a id="26" name="26"></a>
26. Then Judah identified them and said, “She is more righteous than I, since I did not give her to my son Shelah.” And he did not know her again. 
<a id="27" name="27"></a>
27. When the time of her labor came, there were twins in her womb.
<a id="28" name="28"></a>
28. And when she was in labor, one put out a hand, and the midwife took and tied a scarlet thread on his hand, saying, “This one came out first.”
<a id="29" name="29"></a>
29. But as he drew back his hand, behold, his brother came out. And she said, “What a breach you have made for yourself!” Therefore his name was called Perez.
<a id="30" name="30"></a>
30. Afterward his brother came out with the scarlet thread on his hand, and his name was called Zerah. 

(ESV)