Genesis 38
28 And while she was in the act of giving birth, one of them put out his hand; and the woman who was with her put a red thread round his hand, saying, This one came out first.
29 Ref But then he took his hand back again, and his brother came first to birth: and the woman said, What an opening you have made for yourself! So he was named Perez.
30 Ref And then his brother came out, with the red thread round his hand, and he was named Zerah.