What does Matthew 2:13 mean?
It must have been enormously confirming for Mary and Joseph, and perhaps confusing, when wealthy Gentile wise men from the east showed up at their door to worship their child Jesus as a king. Both Mary and Joseph had been visited by angels with messages about Jesus' identity and purpose (Matthew 1:18–20; Luke 1:34–35). Still, the arrival of outsiders who also believed this must have bolstered their faith about what God was doing in their lives.Mary and Joseph would need faith to carry them through what was coming. After the wise men left, an angel of the Lord appeared to Joseph in yet another dream. This time, the news was troubling. Joseph's new mission was to take Jesus and Mary and run away to Egypt. The wicked king wants to destroy their child! Herod had been alerted by the wise men's quest that a "King of the Jews" had been born in Israel. He clearly understood this to be a reference to the promised and long-awaited Messiah who would save Israel and rule over the nation. Instead of welcoming the idea of Israel's savior sent from God, he decided to try to eliminate the threat to his power and throne. The only way to do that was to kill the boy (Matthew 2:16–18).
In this context, "Egypt" means nearby territories such as the Nile Delta, where Herod had no authority. The family is ordered to stay in Egypt until this angel tells them it is safe to return to Israel.
The next verse shows that Joseph's faith held strong. He once again believed and obeyed.