From The Gospel of Pseudo-Matthew:
And, lo, suddenly there came forth from the cave many dragons; and when the children saw them, they cried out in great terror. Then Jesus went down from the bosom of His mother, and stood on His feet before the dragons; and they adored Jesus, and thereafter retired. Then was fulfilled that which was said by David the prophet, saying: Praise the Lord from the earth, ye dragons; ye dragons, and all ye deeps. And the young child Jesus, walking before them, commanded them to hurt no man. But Mary and Joseph were very much afraid lest the child should be hurt by the dragons. And Jesus said to them: Do not be afraid, and do not consider me to be a little child; for I am and always have been perfect; and all the beasts of the forest must needs be tame before me.