They asked around, "Where can we find and pay homage to the newborn King of the Jews? We observed a star in the eastern sky that signaled his birth. We're on pilgrimage to worship him."
Herod then arranged a secret meeting with the scholars from the East. Pretending to be as devout as they were, he got them to tell him exactly when the birth-announcement star appeared.
Then he told them the prophecy about Bethlehem, and said, "Go find this child. Leave no stone unturned. As soon as you find him, send word and I'll join you at once in your worship."
Instructed by the king, they set off. Then the star appeared again, the same star they had seen in the eastern skies. It led them on until it hovered over the place of the child.
They entered the house and saw the child in the arms of Mary, his mother. Overcome, they kneeled and worshiped him. Then they opened their luggage and presented gifts: gold, frankincense, myrrh.
In a dream, they were warned not to report back to Herod. So they worked out another route, left the territory without being seen, and returned to their own country.
After the scholars were gone, God's angel showed up again in Joseph's dream and commanded, "Get up. Take the child and his mother and flee to Egypt. Stay until further notice. Herod is on the hunt for this child, and wants to kill him."
Herod, when he realized that the scholars had tricked him, flew into a rage. He commanded the murder of every little boy two years old and under who lived in Bethlehem and its surrounding hills. (He determined that age from information he'd gotten from the scholars.)
When he heard, though, that Archelaus had succeeded his father, Herod, as king in Judea, he was afraid to go there. But then Joseph was directed in a dream to go to the hills of Galilee.