Genesis 38:24-30 NIV

24 About three months later Judah was told, "Your daughter-in-law Tamar is guilty of prostitution, and as a result she is now pregnant." Judah said, "Bring her out and have her burned to death!"1
25 As she was being brought out, she sent a message to her father-in-law. "I am pregnant by the man who owns these," she said. And she added, "See if you recognize whose seal and cord and staff these are."2

References for Genesis 38:25

      26 Judah recognized them and said, "She is more righteous than I,3 since I wouldn't give her to my son Shelah.4" And he did not sleep with her again.

      References for Genesis 38:26

          27 When the time came for her to give birth, there were twin boys in her womb.5

          References for Genesis 38:27

          28 As she was giving birth, one of them put out his hand; so the midwife6 took a scarlet thread and tied it on his wrist7 and said, "This one came out first."

          References for Genesis 38:28

              29 But when he drew back his hand, his brother came out,8 and she said, "So this is how you have broken out!" And he was named Perez.a9

              References for Genesis 38:29

                • a 38:29 - "Perez" means "breaking out."
                  30 Then his brother, who had the scarlet thread on his wrist,10 came out and he was given the name Zerah.b11

                  References for Genesis 38:30

                    • b 38:30 - "Zerah" can mean "scarlet" or "brightness."