"In Bethlehem in Judea," they replied. "This is what the prophet has written. He said,
" 'But you, Bethlehem, in the land of Judah, are certainly not the least important among the towns of Judah. A ruler will come out of you. He will be the shepherd of my people Israel.' " (Micah 5:2)
Then Herod called for the Wise Men secretly. He found out from them exactly when the star had appeared.
He sent them to Bethlehem. He said, "Go! Make a careful search for the child. As soon as you find him, bring me a report. Then I can go and worship him too."
After the Wise Men had listened to the king, they went on their way. The star they had seen when they were in the east went ahead of them. It finally stopped over the place where the child was.
When they saw the star, they were filled with joy.
The Wise Men went to the house. There they saw the child with his mother Mary. They bowed down and worshiped him. Then they opened their treasures. They gave him gold, incense and myrrh.
But God warned them in a dream not to go back to Herod. So they returned to their country on a different road.
When the Wise Men had left, Joseph had a dream. In the dream an angel of the Lord appeared to him. "Get up!" the angel said. "Take the child and his mother and escape to Egypt. Stay there until I tell you to come back. Herod is going to search for the child. He wants to kill him."
References for Matthew 2:13
Joseph got up. During the night, he left for Egypt with the child and his mother Mary.
They stayed there until King Herod died. So the words the Lord had spoken through the prophet came true. He had said, "I chose to bring my son out of Egypt."(Hosea 11:1)