Matthew 2:12-22

12 But they had been warned in a dream not to return to Herod, so they took another route back to their own country.
13 After they had gone, an angel of ADONAI appeared to Yosef in a dream and said, "Get up, take the child and his mother, and escape to Egypt, and stay there until I tell you to leave. For Herod is going to look for the child in order to kill him."
14 So he got up, took the child and his mother, and left during the night for Egypt,
15 where he stayed until Herod died. This happened in order to fulfill what ADONAI had said through the prophet, "Out of Egypt I called my son."
16 Meanwhile, when Herod realized that the Magi had tricked him, he was furious and gave orders to kill all the boys in and around Beit-Lechem who were two years old or less, calculating from the time the Magi had told him.
17 In this way were fulfilled the words spoken through the prophet Yirmeyahu,
18 "A voice was heard in Ramah, sobbing and lamenting loudly. It was Rachel sobbing for her children and refusing to be comforted, because they are no longer alive."
19 After Herod's death, an angel of ADONAI appeared in a dream to Yosef in Egypt
20 and said, "Get up, take the child and his mother, and go to Eretz-Yisra'el, for those who wanted to kill the child are dead."
21 So he got up, took the child and his mother, and went back to Eretz-Yisra'el.
22 However, when he heard that Archelaus had succeeded his father Herod as king of Y'hudah, he was afraid to go there. Warned in a dream, he withdrew to the Galil
Complete Jewish Bible Copyright 1998 by David H. Stern. Published by Jewish New Testament Publications, Inc. All rights reserved. Used by permission.