Joseph and Mary's Flight into Egypt

After the Magi had departed the Angel of the Lord appeared to Joseph in a dream and told him to take Jesus and his mother into the land of Egypt until He sent word that it would be safe to return. He warned that Herod would try to find the child to murder him. Joseph obeyed the Lord and took Jesus and his mother by night and departed for the land of Egypt. This event was foretold by the prophets.

"And being warned of God in a dream that they should not return to Herod, they departed into their own country another way. And when they were departed, behold, the angel of the Lord appeareth to Joseph in a dream, saying, Arise, and take the young child and his mother, and flee into Egypt, and be thou there until I bring thee word: for Herod will seek the young child to destroy him. When he arose, he took the young child and his mother by night, and departed into Egypt: And was there until the death of Herod: that it might be fulfilled which was spoken of the Lord by the prophet, saying, Out of Egypt have I called my son." Matthew 2:12-15

Map of Joseph, Mary, and Jesus in Egypt