2 13 After they had gone, an angel of the Lord appeared to Joseph in a dream, and said to him, 'Rise up, take the child and his mother and escape with them to Egypt, and stay there until I tell you; for Herod is going to search for the child to do away with him. 2 14 So Joseph rose from sleep, and taking mother and child by night he went away with them to Egypt, 2 15 [ Hs.11.1. ] and there he stayed till Herod's death.
This was to fulfil what the Lord had declared through the prophet: 'I called my son out of Egypt.'