Genesis 38:24-30 Common English Bible (CEB)
24 About three months later, Judah was told, “Your daughter-in-law Tamar has become a prostitute and is now pregnant because of it.”
And Judah said, “Bring her out so that she may be burned.”
25 When she was brought out, she sent this message to her father-in-law, “I’m pregnant by the man who owns these things. See if you recognize whose seal, cord, and staff these are.”
26 Judah recognized them and said, “She’s more righteous than I am, because I didn’t allow her to marry my son Shelah.” Judah never knew her intimately again.
27 When she gave birth, she discovered she had twins in her womb. 28 At birth, one boy put out his hand, and the midwife took it and tied a red thread on his hand, saying, “This one came out first.” 29 As soon as he pulled his hand back, his brother came out, and she said, “You’ve burst out on your own.” So he was named Perez.[a] 30 Afterward, his brother with the red thread on his hand came out, and he was named Zerah.[b]