Genesis 38:28 in the King James Version
And it came to pass, when she travailed, that the one put out his hand: and the midwife took and bound upon his hand a scarlet thread, saying, This came out first.
Context
27 In the time of her travail, behold, twins were in her womb.
28 When she travailed, one put out a hand, and the midwife took and tied a scarlet thread on his hand, saying, “This came out first.”
29 As he drew back his hand, behold, his brother came out, and she said, “Why have you made a breach for yourself?” Therefore his name was called Perez.