When Herod realized that he had been outwitted by the Magi, he was furious, and he gave orders to kill all the boys in Bethlehem and its vicinity who were two years old and under, in accordance with the time he had learned from the Magi.
Then what was said through the prophet Jeremiah was fulfilled:1
References for Matthew 2:17
"A voice is heard in Ramah, weeping and great mourning, Rachel2 weeping for her children and refusing to be comforted, because they are no more."3
References for Matthew 2:18
After Herod died, an angel4 of the Lord appeared in a dream5 to Joseph in Egypt
References for Matthew 2:19
and said, "Get up, take the child and his mother and go to the land of Israel, for those who were trying to take the child's life are dead."6
References for Matthew 2:20
So he got up, took the child and his mother and went to the land of Israel.
But when he heard that Archelaus was reigning in Judea in place of his father Herod, he was afraid to go there. Having been warned in a dream,7 he withdrew to the district of Galilee,8
References for Matthew 2:22
and he went and lived in a town called Nazareth.9 So was fulfilled10 what was said through the prophets: "He will be called a Nazarene."11
References for Matthew 2:23