Genesis 38:28-30 - WEB
28
It happened, when she travailed, that one put out a hand: and the midwife took and tied a scarlet thread on his hand, saying, "This came out first."
29
It happened, as he drew back his hand, that behold, his brother came out, and she said, "Why have you made a breach for yourself?" Therefore his name was called Perez.
30
Afterward his brother came out, that had the scarlet thread on his hand, and his name was called Zerah.
Full Chapter