Protevangelium of James 21
1And behold, Joseph made him ready to go forth into Judaea. And there came a great tumult in Bethlehem of Judaea; for there came wise men, saying: Where is he that is born king of the Jews? for we have seen his star in the east and are come to worship him.
2And when Herod heard it he was troubled and sent officers unto the wise men. And he sent for the high priests and examined them, saying: How is it written concerning the Christ, where he is born? They say unto him: In Bethlehem of Judaea: for so it is written. And he let them go. And he examined the wise men, saying unto them: What sign saw ye concerning the king that is born? And the wise men said: We saw a very great star shining among those stars and dimming them so that the stars appeared not: and thereby knew we that a king was born unto Israel, and we came to worship him. And Herod said: Go and seek for him, and if ye find him, tell me, that I also may come and worship him.
3And the wise men went forth. And lo, the star which they saw in the east went before them until they entered into the cave: and it stood over the head of the cave. And the wise men saw the young child with Mary his mother: and they brought out of their scrip gifts, gold and frankincense and myrrh.
4And being warned by the angel that they should not enter into Judaea, they went into their own country by another way.