Now when [the magi] had departed, behold, an angel of the Lord appeared to Joseph in a dream and said, “Rise, take the child and his mother, flee to Egypt, and stay there until I tell you. Herod is going to search for the Child to destroy Him.”
Joseph rose and took the child and His mother by night, and departed for Egypt. He stayed there until the death of Herod, that what the Lord had said through the prophet might be fulfilled, “Out of Egypt I called my son.”
When Herod had died, behold, the angel of the Lord appeared in a dream to Joseph in Egypt and said, “Rise, take the child and his mother and go to the land of Israel, for those who sought the child’s life are dead.” He rose, took the child and his mother, and went to the land of Israel.