Genesis 38:27

Now it came to pass, at the time for giving birth, that behold, twins were in her womb.

Surrounding context

38:26 So Judah acknowledged them and said, "She has been more righteous than I, because I did not give her to Shelah my son." And he never knew her again.

38:27 Now it came to pass, at the time for giving birth, that behold, twins were in her womb.

38:28 And so it was, when she was giving birth, that the one put out his hand; and the midwife took a scarlet thread and bound it on his hand, saying, "This one came out first."

Translation and sources