9But Onan knew that the offspring would not be his, so whenever he slept with his brother's wife, he released his semen on the ground so that he would not produce offspring for his brother.
11Then Judah said to his daughter-in-law Tamar, "Remain a widow in your father's house until my son Shelah grows up." For he thought, "He might die too, like his brothers." So Tamar went to live in her father's house.
12After a long time Judah's wife, the daughter of Shua, died. When Judah had finished mourning, he and his friend Hirah the Adullamite went up to Timnah to his sheepshearers.
14So she took off her widow's clothes, veiled her face, covered herself, and sat at the entrance to Enaim, which is on the way to Timnah. For she saw that, though Shelah had grown up, she had not been given to him as a wife.
16He went over to her and said, "Come, let me sleep with you," for he did not know that she was his daughter-in-law. She said, "What will you give me for sleeping with me?"
18"What should I give you?" he asked. She answered, "Your signet ring, your cord, and the staff in your hand." So he gave them to her and slept with her, and she became pregnant by him.
21He asked the men of the place, "Where is the cult prostitute who was beside the road at Enaim?" "There has been no cult prostitute here," they answered.
22So the Adullamite returned to Judah, saying, "I couldn't find her, and besides, the men of the place said, 'There has been no cult prostitute here.'"
23Judah replied, "Let her keep the items for herself; otherwise we will become a laughingstock. After all, I did send this young goat, but you couldn't find her."
24About three months later Judah was told, "Your daughter-in-law, Tamar, has been acting like a prostitute, and now she is pregnant." "Bring her out," Judah said, "and let her be burned to death!"
25As she was being brought out, she sent her father-in-law this message: "I am pregnant by the man to whom these items belong." And she added, "Examine them. Whose signet ring, cord, and staff are these?"
26Judah recognized them and said, "She is more in the right than I, since I did not give her to my son Shelah." And he did not know her intimately again.
28As she was giving birth, one of them put out his hand, and the midwife took it and tied a scarlet thread around it, announcing, "This one came out first."