There are also Christian texts that would become declared apocryphal in the fourth century, such as the Infancy Gospel of James.
This parallels an episode in the apocryphal Infancy Gospel of Thomas where he does the same:
Later, 2nd century texts, called Infancy Gospels, narrate Jesus performing miracles during his childhood.
Another text to be based on Pseudo Matthew is the Arabic Infancy Gospel, which includes many supernatural embellishments.
A number of apocryphal texts, the Infancy Gospels grew up with legendary accounts of the intervening period, and these are sometimes shown.
This is also recorded in the Infancy Gospel of James, an apocryphal work from the 2nd century.
The narrative of the Arabic Infancy Gospel, particularly the second part concerning the miracles in Egypt, can also be found in the Qur'an.
A good example of the second point is found in the stories of the Infancy Gospels.
The text also appears in the story of the annunciation from the apocryphal Infancy Gospel of Matthew, in chapter 9.
The story was slightly elaborated in later literature, such as the apocryphal 2nd-century Infancy Gospel of Thomas(19:1-12).