The wise men (astrologers) from the East, having worshiped the Lord in Bethlehem, were directed to return to their home another way by command of an angel. Herod, that wicked king, planned to slaughter all the children in Bethlehem, but God saw Herod’s intention and sent His angel to Joseph. The angel of God appeared to Joseph in a dream and commanded him to take the young Child and His Mother and flee to Egypt. Joseph did this. Taking the Divine Child and His Most-holy Mother, he traveled first to Nazareth (Luke 2:39), where he arranged his household matters, and then, taking his son James with them, went off to Egypt (Matthew 2:14). Thus the words of the prophet were fulfilled: Behold, the Lord rideth upon a swift cloud, and shall come into Egypt (Isaiah 19:1). In old Cairo today, the cave where the holy family lived can be seen. Likewise, in the village of Matarea near Cairo, the tree under which the Most-holy Theotokos rested with the Lord Jesus, as well as a miraculous spring of water under this tree, are visible. After having lived for several years in Egypt, the holy family returned to Palestine, again in response to a command of an angel of God. Thus another prophecy was fulfilled: Out of Egypt have I called my Son (Hosea 11:1). Herod was dead and his wicked son Archelaus-a worthy successor of him in evil-sat on his bloodstained throne. Hearing that Archelaus was reigning in Jerusalem, Joseph returned to Galilee, to his town of Nazareth, where he settled in his own home. Herod’s second son, Herod the Younger, who was somewhat less evil than his brother Archelaus, then reigned in Galilee.
—The Commemoration of the Flight into Egypt