Genesis 38:28

28 And when she was in labor, one put out a hand; and the midwife took and bound on his hand a scarlet thread, saying, "This came 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 Then Judah acknowledged them and said, "She is more righteous than I, inasmuch as I did not give her to my son Shelah." And he did not lie with her again.
27 When the time of her delivery came, there were twins in her womb.
28 And when she was in labor, one put out a hand; and the midwife took and bound on his hand a scarlet thread, saying, "This came out first."
29 But as he drew back his hand, behold, his brother came out; and she said, "What a breach you have made for yourself!" Therefore his name was called Perez.
30 Afterward his brother came out with the scarlet thread upon his hand; and his name was called Zerah.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.