Genesis 38:28

New American Standard Bible (NASB)
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.”

Read Genesis 38:28 in other translations