Genesis 38:28-29
38:28 While she was giving birth, one child put out his hand, and the midwife took a scarlet thread and tied it on his hand, saying, “This one came out first.”
38:29 But then he drew back his hand, and his brother came out before him. She said, “How you have broken out of the womb!” So he was named Perez.
Genesis 45:1
The Reconciliation of the Brothers
45:1 Joseph was no longer able to control himself before all his attendants, so he cried out, “Make everyone go out from my presence!” No one remained with Joseph when he made himself known to his brothers.