24 About three months later someone told Judah, “Tamar, your daughter-in-law, is guilty of acting like a prostitute, and now she is pregnant.”Then Judah said, “Bring her out and let her be burned to death.”
25 When the people went to bring Tamar out, she sent a message to her father-in-law that said, “The man who owns these things has made me pregnant. Look at this seal and its cord and this walking stick, and tell me whose they are.”
26 Judah recognized them and said, “She is more in the right than I. She did this because I did not give her to my son Shelah as I promised.” And Judah did not have sexual relations with her again.
27 When the time came for Tamar to give birth, there were twins in her body.
28 While she was giving birth, one baby put his hand out. The nurse tied a red string on his hand and said, “This baby came out first.”
29 But he pulled his hand back in, so the other baby was born first. The nurse said, “So you are able to break out first,” and they named him Perez.
30 After this, the baby with the red string on his hand was born, and they named him Zerah.