Genesis 38:28

28 and it cometh to pass in her bearing, that [one] giveth out a hand, and the midwife taketh and bindeth on his hand a scarlet thread, saying, `This hath come out first.'

Genesis 38:28 Meaning and Commentary

Genesis 38:28

And it came to pass when she travailed
Her birth throes came strong and quick upon her: that [the one] put out [his] hand;
which showed that she was like to have a difficult and dangerous time of it; that the birth was not like to be according to the usual and natural order, which may be considered as a correction for her sin: and the midwife took and bound upon his hand a scarlet thread, saying,
this came out first;
she tied this to his wrist, that she might know whose hand it was, and so which was the firstborn; which, to know was a matter of consequence, since to the firstborn there were some special and peculiar privileges.

Genesis 38:28 In-Context

26 And Judah discerneth and saith, `She hath been more righteous than I, because that I did not give her to Shelah my son;' and he hath not added to know her again.
27 And it cometh to pass in the time of her bearing, that lo, twins [are] in her womb;
28 and it cometh to pass in her bearing, that [one] giveth out a hand, and the midwife taketh and bindeth on his hand a scarlet thread, saying, `This hath come out first.'
29 And it cometh to pass as he draweth back his hand, that lo, his brother hath come out, and she saith, `What! thou hast broken forth -- on thee [is] the breach;' and he calleth his name Pharez;
30 and afterwards hath his brother come out, on whose hand [is] the scarlet thread, and he calleth his name Zarah.
Young's Literal Translation is in the public domain.