This is a continuation of the Christmas Story in the apocryphal Gospel of James [also sometimes called the “Infancy” Gospel” or the Protoevangelium of James].
The Gospel According to James 21–22.
22. “And, look, Joseph was prepared to leave to Judea and there was trouble in Bethlehem. For the Magi had come from the East in Persia, saying, “Where is the child born King of the Jews? For we saw his star in the East and we have come to bow before him. When Herod heard this, he was upset and he sent attendants to the Magi and he also summoned the high priests and asked them, “Where has this “Christ” been born?” and they answered, “In Bethlehem of Judea—for it was written thus.” And he let them go. Then he questioned the Magi, saying to them, “What sign did you see for a king who was born?” And the magi said to him, we say the greatest start blazing among the these stars and making them seem dull. We knew from this that a king had been born for Israel. For this reason we came to bow before him.” And Herod responded, “Go and seek out the child carefully. And when he is found, send me news of it so that I can go and bow to him too.
And so the Magi left and, look, the star which they saw in the east led them on until they came to that place where the cave protected the child’s head. And when they saw him with his mother Mary, they bowed and took from their strongboxes the gifts they brought: gold, frankincense and myrrh. Because they had been warned by a sacred angel not to enter Judea near Herod, they took another route to return to their country.
22 But once Herod figured out that he had been evaded by the Magi, he was enraged and he sent assassins whom he ordered to kill all infants under two years. Once Mary heard that the infants were being killed, she took her child in fear and left to Egypt with Joseph, just as was predicated to them. But when Elisabeth took John and went into the hills and looked around for a place to hide him, there was no safe sanctuary. Then, she said as she cried, “Mountain, mountain—take a mother with her child. For she was not able to leave. And then suddenly, the mountain split into two and welcomed her. The mountain itself was alight for them and there was an angel of the lord looking over them.”
21.1 Καὶ ἰδοὺ Ἰωσὴφ ἡτοιμάσθη ἐξελθεῖν εἰς τὴν Ἰουδαίαν, καὶ θόρυβος ἐγένετο ἐν Βηθλεέμ. ἦλθαν γὰρ μάγοι ἀπὸ ἀνατολῶν (ἐκ Περσίδος) λέγοντες: ποῦ ἐστιν ὁ τεχθεὶς βασιλεὺς τῶν Ἰουδαίων; εἴδομεν γὰρ αὐτοῦ τὸν ἀστέρα ἐν τῇ ἀνατολῇ καὶ ἤλθομεν προσκυνῆσαι αὐτόν. 2 καὶ ἀκούσας Ἡρώδης ἐταράχθη καὶ ἔπεμψεν ὑπηρέτας πρὸ(ς) τοὺς μάγους, καὶ ἀπέστειλεν πρὸς τοὺς ἀρχιερεῖς καὶ ἀνέκρινεν αὐτοὺς λέγων: ποῦ ὁ χριστὸς γεννᾶται; οἱ δὲ εἶπον: ἐν Βηθλεὲμ τῆς Ἰουδαίας: οὕτως γὰρ γέγραπται. καὶ ἀπέλυσεν αὐτοὺς καὶ ἀνέκρινε τοὺς μάγους λέγων αὐτοῖς: τί εἴδετε σημεῖον ἐπὶ τὸν γεννηθέντα βασιλέα; καὶ εἶπον οἱ μάγοι: εἴδομεν ἀστέρα παμμεγέθη λάμψαντα ἐν τοῖς ἄστροις τούτοις καὶ ἀμβλύνοντα αὐτοὺς τοῦ (μὴ) φαίνειν καὶ ἔγνωμεν, ὅτι βασιλεὺς ἐγεννήθη τῷ Ἰσραήλ: καὶ διὰ τοῦτο ἤλθομεν προσκυνῆσαι αὐτόν. καὶ εἶπεν Ἡρώδης: πορευθέντες ἀκριβῶς ἐκζητήσατε περὶ τοῦ παιδίου: καὶ ἐπὰν εὕρηται, ἀπαγγείλατέ μοι, ὅπως κἀγὼ ἐλθὼν προσκυνήσω αὐτόν. 3 καὶ ἐξῆλθον οἱ μάγοι, καὶ ἰδοὺ ὁ ἀστήρ, ὅν εἶδον ἐν τῇ ἀνατολῇ, προῆγεν αὐτῶν, ἕως οὗ ἐλθὼν ἔστη εἰς τὸ σπήλαιον ἐπὶ τῆς κεφαλῆς τοῦ παιδίου. καὶ ἰδόντες αὐτὸ οἱ μάγοι μετὰ τῆς μητρὸς αὐτοῦ Μαρίας προσεκύνησαν αὐτὸ καὶ ἀνοίξαντες τοὺς θησαυροὺς αὐτῶν προσήνεγκαν αὐτῶν δῶρα, χρυσὸν καὶ λίβανον καὶ σμύρναν. καὶ χρηματισθέντες ὑπὸ ἁγίου ἀγγέλου (μὴ εἰσελθεῖν εἰς τὴν Ἰουδαίαν πρὸς Ἡρώδην) δι’ ἄλλης ὁδοῦ ἐπορεύθησαν εἰς τὴν χώραν αὐτῶν.
22.1 Γνοὺς δὲ ὁ Ἡρώδης, ὅτι ἐνεπαίχθη ὑπὸ τῶν μάγων, ὀργισθεὶς ἔπεμψεν τοὺς φονευτὰς κελεύσας αὐτοῖς ἀνελεῖν τὰ βρέφη ἀπὸ διετοῦς καὶ κατωτέρω. 2 ἀκούσασα δὲ Μαριάμ, ὅτι τὰ βρέφη ἀναιροῦνται, φοβηθεῖσα ἔλαβεν τὸ παιδίον μετὰ Ἰωσὴφ καὶ ἀπεδήμησεν εἰς Αἴγυπτον, καθὼς ἐχρηματίσθη αὐτοῖς. 3 ἡ δὲ Ἐλισάβετ λαβοῦσα τὸν Ἰωάννην ἀνέβη εἰς τὴν ὀρεινὴν καὶ περιεβλέπετο, ποῦ αὐτὸν ἀποκρύψει: καὶ οὐκ ἦν αὐτοῖς τόπος ἀποκρυβῆς. τότε στενάξασα λέγει: ὄρος, ὄρος, δέξαι μητέρα μετὰ τέκνου . οὐ γὰρ ἠδύνατο πορεύεσθαι. καὶ παραχρῆμα ἐδιχάσθη τὸ ὄρος καὶ ἐδέξατο αὐτήν. καὶ ἦν τὸ ὄρος ἐκεῖνο διαφαῖνον αὐτοῖς καὶ ἄγγελος κυρίου ὁδηγῶν αὐτούς.