Matthew 2:13-21 New Revised Standard Version (NRSV)
The Escape to Egypt
13 Now after they had left, 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 is about to search for the child, to destroy him.” 14 Then Joseph[a] got up, took the child and his mother by night, and went to Egypt, 15 and remained there until the death of Herod. This was to fulfill what had been spoken by the Lord through the prophet, “Out of Egypt I have called my son.”
The Massacre of the Infants
16 When Herod saw that he had been tricked by the wise men,[b] he was infuriated, and he sent and killed all the children in and around Bethlehem who were two years old or under, according to the time that he had learned from the wise men.[c] 17 Then was fulfilled what had been spoken through the prophet Jeremiah:
18 “A voice was heard in Ramah,
The Return from Egypt
19 When Herod died, an angel of the Lord suddenly appeared in a dream to Joseph in Egypt and said, 20 “Get up, take the child and his mother, and go to the land of Israel, for those who were seeking the child’s life are dead.” 21 Then Joseph[d] got up, took the child and his mother, and went to the land of Israel.