As recorded in the Bible's Gospel of Matthew, the king had decreed the death of all Bethlehem's baby boys, but an angel had appeared to Joseph in a dream, telling him to "take the young child and his mother and flee into Egypt". According to Matthew, the trio obeyed this instruction and departed the very next night.