Genesis 38:28

New International Version - UK Bible (NIVUK)
As she was giving birth, one of them put out his hand; so the midwife took a scarlet thread and tied it on his wrist and said, ‘This one came out first.’

Read Genesis 38:28 in other translations