On their second trip to Egypt, Joseph revealed his identity to his brothers, and because of this, Pharaoh learned about Joseph’s family and where he came from.
Then Joseph said to his brothers and all his father’s family, “I must go and tell the king that my brothers and all my father’s family have come to me from Canaan.