Matthew 2:12-22

12 And it was made clear to them by God in a dream that they were not to go back to Herod; so they went into their country by another way.
13 And when they had gone, an angel of the Lord came to Joseph in a dream, saying, Get up and take the young child and his mother, and go into Egypt, and do not go from there till I give you word; for Herod will be searching for the young child to put him to death.
14 So he took the young child and his mother by night, and went into Egypt;
15 And was there till the death of Herod; so that the word of the Lord through the prophet might come true, Out of Egypt have I sent for my son.
16 Then Herod, when he saw that he had been tricked by the wise men, was very angry; and he sent out, and put to death all the male children in Beth-lehem and in all the parts round about it, from two years old and under, acting on the knowledge which he had got with care from the wise men.
17 Then the word of Jeremiah the prophet came true,
18 In Ramah there was a sound of weeping and great sorrow, Rachel weeping for her children, and she would not be comforted for their loss.
19 But when Herod was dead, an angel of the Lord came in a dream to Joseph in Egypt,
20 Saying, Get up and take the young child and his mother, and go into the land of Israel: because they who were attempting to take the young child's life are dead.
21 And he got up, and took the young child and his mother, and came into the land of Israel.
22 But when it came to his ears that Archelaus was ruling over Judaea in the place of his father Herod, he was in fear of going there; and God having given him news of the danger in a dream, he went out of the way into the country parts of Galilee.
The Bible in Basic English is in the public domain.