16 When Herod realized that the visitors from the east had tricked him, he was furious. He gave orders to kill all the boys in Bethlehem and its neighbourhood who were two years old and younger — this was done in accordance with what he had learned from the visitors about the time when the star had appeared.
17 In this way what the prophet Jeremiah had said came true:
18 “A sound is heard in Ramah,the sound of bitter weeping.Rachel is crying for her children;she refuses to be comforted,for they are dead.”
19 After Herod died, an angel of the Lord appeared in a dream to Joseph in Egypt
20 and said, “Get up, take the child and his mother, and go back to the land of Israel, because those who tried to kill the child are dead.”
21 So Joseph got up, took the child and his mother, and went back to Israel.
22 But when Joseph heard that Archelaus had succeeded his father Herod as king of Judea, he was afraid to go there. He was given more instructions in a dream, so he went to the province of Galilee