Genesis 38:27-29 New International Reader's Version (NIRV)

27. The time came for Tamar to have her baby. There were twin boys inside her.

28. As the babies were being born, one of them stuck out his hand. So the woman who was helping Tamar took a bright red thread. The woman tied it on the baby's wrist. She said, "This one came out first."

29. But he pulled his hand back, and his brother came out first instead. She said, "Just look at how you have broken out!" So he was called Perez.

Genesis 38