The young child Jesus was under a death sentence. The Wise Men came proclaiming that the Messiah, the “King of the Jews” had been born. This shook the already-paranoid king Herod to his core. He went on a rampage, killing every boy who was two years of age or under in the region of Bethlehem. But an angel of the Lord had warned Joseph in a dream to flee. Financed by the expensive gifts they had just received from the Magi, they made their way to Egypt fulfilling prophecy, protecting the Christ child and unfolding another fascinating chapter in our story of redemption through a loving God who became man and dwelt among us.
When they had gone, an angel of the Lord appeared to Joseph in a dream. “Get up,” he said, “take the child and his mother and escape to Egypt. Stay there until I tell you, for Herod is going to search for the child to kill him.” So he got up, took the child and his mother during the night and left for Egypt, where he stayed until the death of Herod
And so was fulfilled what the Lord had said through the prophet: “Out of Egypt I called my son.” 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: “A voice is heard in Ramah, weeping and great mourning, Rachel weeping for her children and refusing to be comforted, because they are no more.” After 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 were trying to take the child’s life are dead.”
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, he withdrew to the district of Galilee, and he went and lived in a town called Nazareth. So was fulfilled what was said through the prophets, that he would be called a Nazarene. (Matthew 2:13-23)