Matthew 2:13-15, 19-23
Matthew 2:13-15 AMP
Now when they had gone, an angel of the Lord appeared to Joseph in a dream and said, “Get up! Take the Child and His mother and flee to Egypt, and remain there until I tell you; for Herod intends to search for the Child in order to destroy Him.” So Joseph got up and took the Child and His mother while it was still night, and left for Egypt. He remained there until the death of Herod. This was to fulfill what the Lord had spoken by the prophet [Hosea]: “OUT OF EGYPT I CALLED MY SON.” [Hos 11:1]
Matthew 2:19-23 AMP
But when Herod died, an angel of the Lord appeared in a dream to Joseph in Egypt, and said, “Get up! Take the Child and His mother, and go to the land of Israel; for those who sought the Child’s life are dead.” Then Joseph got up, and took the Child and His mother, and came into the land of Israel. But when he heard that Archelaus was ruling over Judea in place of his father Herod [the Great], he was afraid to go there. Then being warned by God in a dream, he left for the region of Galilee, and went and settled in a city called Nazareth. This was to fulfill what was spoken through the prophets: “He shall be called a Nazarene.”