Escape to Egypt
An angel warns Joseph to flee to Egypt with Mary and Jesus because Herod wants to kill the child.
When the Magi 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 Joseph got up, took the child and his mother during the night and left for Egypt, where he stayed until the death of Herod.
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 two years old and under.
After Herod died, an angel appeared in a dream to Joseph in Egypt. '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. Having been warned in a dream, he withdrew to Galilee, and lived in a town called Nazareth.