Genesis 38:21-30
38:21 He 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.”
38:22 So he returned to Judah and said, “I couldn’t find her. Moreover, the men of the place said, ‘There has been no cult prostitute here.’”
38:23 Judah 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.”
38:24 After 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!”
38:25 While 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.”
38:26 Judah 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.
38:27 When it was time for her to give birth, there were twins in her womb.
38:28 While 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.”
38:29 But then he drew back his hand, and his brother came out before him. She said, “How you have broken out of the womb!” So he was named Perez.
38:30 Afterward his brother came out – the one who had the scarlet thread on his hand – and he was named Zerah.