When Herod died, an angel of the Lord appeared in a dream to Joseph in Egypt and told him,
"Get up and take the child and his mother back to the land of Israel, because those who were trying to kill the child are dead."
So Joseph returned immediately to Israel with Jesus and his mother.
But when he learned that the new ruler was Herod's son Archelaus, he was afraid. Then, in another dream, he was warned to go to Galilee.
So they went and lived in a town called Nazareth. This fulfilled what was spoken by the prophets concerning the Messiah: "He will be called a Nazarene."