Pharaoh sent at once for Joseph.  He was brought hastily from the dungeon, and after a quick shave and change of clothes, came in before Pharaoh.  “I had a dream last night,” Pharaoh told him, “and none of these men can tell me what it means.  But I have heard that you can interpret dreams, and that is why I have called you.”  “I can’t do it by myself,” Joseph replied, “but God will tell you what it means!” Genesis

After they were gone, an angel of the Lord appeared to Joseph in a dream.  “Get up and flee to Egypt with the Baby and his mother,” the angel said, “and stay there until I tell you to return, for King Herod is going to try to kill the Child.”  That same night he left for Egypt with Mary and the Baby, and stayed there until King Herod’s death.  This fulfilled the prophet’s prediction; “I have called My Son from Egypt.” Matthew