8Then Judah said to Onan, "Have sexual relations with your brother's wife and fulfill the duty of a brother-in-law to her so that you may raise up a descendant for your brother."
9But Onan knew that the child would not be considered his. So whenever he had sexual relations with his brother's wife, he withdrew prematurely so as not to give his brother a descendant.
11Then Judah said to his daughter-in-law Tamar, "Live as a widow in your father's house until Shelah my son grows up." For he thought, "I don't want him to die like his brothers." So Tamar went and lived in her father's house.
12After some time Judah's wife, the daughter of Shua, died. After Judah was consoled, he left for Timnah to visit his sheepshearers, along with his friend Hirah the Adullamite.
14So she removed her widow's clothes and covered herself with a veil. She wrapped herself and sat at the entrance to Enaim which is on the way to Timnah. (She did this because she saw that she had not been given to Shelah as a wife, even though he had now grown up.)
16He turned aside to her along the road and said, "Come on! I want to have sex with you." (He did not realize it was his daughter-in-law.) She asked, "What will you give me in exchange for having sex with you?"
18He said, "What pledge should I give you?" She replied, "Your seal, your cord, and the staff that's in your hand." So he gave them to her and had sex with her. She became pregnant by him.
20Then Judah had his friend Hirah the Adullamite take a young goat to get back from the woman the items he had given in pledge, but Hirah could not find her.
21He asked the men who were there, "Where is the cult prostitute who was at Enaim by the road?" But they replied, "There has been no cult prostitute here."
23Judah said, "Let her keep the things for herself. Otherwise we will appear to be dishonest. I did indeed send this young goat, but you couldn't find her."
24After three months Judah was told, "Your daughter-in-law Tamar has turned to prostitution, and as a result she has become pregnant." Judah said, "Bring her out and let her be burned!"
25While they were bringing her out, she sent word to her father-in-law: "I am pregnant by the man to whom these belong." Then she said, "Identify the one to whom the seal, cord, and staff belong."
26Judah recognized them and said, "She is more upright than I am, because I wouldn't give her to Shelah my son." He did not have sexual relations with her again.
28While she was giving birth, one child put out his hand, and the midwife took a scarlet thread and tied it on his hand, saying, "This one came out first."