Moreover, it took place while she was giving birth, one put out a hand, and the midwife took and tied a scarlet thread on his hand, saying, 'This one came out first.'
(New American Standard Bible)
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.
(King James Version)