Matthew Chapter 2 (AMP)
Now when Jesus was born in Bethlehem of Judea in the days of Herod the king (Herod the Great), magi (wise men) from the east came to Jerusalem, asking,
“Where is He who has been born King of the Jews? For we have seen His star in the east and have come to worship Him.”
When Herod the king heard this, he was disturbed, and all Jerusalem with him.
So he called together all the chief priests and [d]scribes of the people and [anxiously] asked them where the Christ (the Messiah, the Anointed) was to be born.
They replied to him, “In Bethlehem of Judea, for this is what has been written by the prophet [Micah]:
‘And you, Bethlehem, in the land of Judah, are not in any way least among the leaders of Judah;
For from you shall come a Ruler Who will shepherd My people Israel.’”
Then Herod secretly sent for the magi and learned from them [e]the [exact] time the star [had first] appeared.
Then he sent them to Bethlehem, saying, “Go and search carefully for the Child; and when you have found Him, report to me, so that I too may come and worship Him.”
After hearing the king, they went their way; and behold, the star, which they had seen in the east, went on before them [continually leading the way] until it came and stood over the place where the young Child was.
When they saw the star, they rejoiced exceedingly with great joy.
And after entering the house, they saw the Child with Mary His mother; and they fell down and worshiped Him. Then, after opening their treasure chests, they presented to Him gifts [fit for a king, gifts] of gold, frankincense, and myrrh.
And having been warned [by God] in a dream not to go back to Herod, the magi left for their own country by another way.
The Flight to Egypt
Now when they had gone, an angel of the Lord appeared to Joseph in a dream and said, “Get up! Take the Child and His mother and flee to Egypt, and remain there until I tell you; for Herod intends to search for the Child in order to destroy Him.”
So Joseph got up and took the Child and His mother while it was still night, and left for Egypt.
He remained there until the death of Herod. This was to fulfill what the Lord had spoken by the prophet [Hosea]: “Out of Egypt I called My Son.”
Herod Slaughters the Babies
Then Herod, when he realized that he had been tricked by the magi, was extremely angry, and he sent [soldiers] and put to death all the male children in Bethlehem and in all that area who were two years old and under, according to the date which he had learned from the magi.
Then what had been spoken through Jeremiah the prophet was fulfilled:
“A voice was heard in [f]Ramah, Weeping and great mourning, Rachel weeping for her children; She refused to be comforted, Because they were no more.”
But when 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 sought the Child’s life are dead.”
Then Joseph got up, and took the Child and His mother, and came into the land of Israel.
But when he heard that Archelaus was ruling over Judea in place of his father Herod [the Great], he was afraid to go there. Then being warned by God in a dream, he left for the region of Galilee,
and went and settled in a city called Nazareth. This was to fulfill what was spoken through the prophets: “He shall be called a Nazarene.”
Content source: Amplified version of the Holy Bible