Infancy Gospel of James
The Infancy Gospel of James is a pseudoepigraphial Gospel dating from the late 2nd century CE to the 3rd century CE. The Gospel shares material common with Gospel of Luke and Gospel of Matthew, and references the Greek Old Testament (Septuagint) more than the Hebrew. As indicated by the title, the Gospel follows Mary, the mother of Jesus, from her birth through her marriage to Joseph and through the birth of her son. Like Matthew, the story of Jesus' birth includes the family's survivals of the threat of Herod.
The book is attributed to James the Just, who is a step brother to Jesus through Joseph; however, the text is clearly not of Jewish origins as the author is unfamiliar with several Jewish customs of the day.
The Gospel of James is highly focused on Mary, and it is the first work that mentions Mary's perpetual virginity. It also talks of her miraculous birth (perhaps a source of the immaculate conception?) to Joachim and Anna, talks of her time serving in the temple and of her "entrance" into womanhood at which time she was sent from the temple.