The Gospel of James (or the Protoevangelium of James) is a 2nd-century infancy gospel telling of the miraculous conception of the Virgin Mary, her upbringing and marriage to Joseph, the journey of the holy couple to Bethlehem, the birth of Jesus, and events immediately following.
Mary is presented as an extraordinary child destined for great things from the moment of her conception. Her parents, the wealthy Joachim and his wife Anna (or Anne), are distressed that they have no children, and Joachim goes into the wilderness to pray, leaving Anna to lament her childless state. God hears Anna's prayer, angels announce the coming child, and in the seventh month of Anna's pregnancy (underlining the exceptional nature of Mary's future life) she is born. Anna dedicates the child to God and vows that she shall be raised in the Temple. Joachim and Anna name the child Mary, and when she is three years old they send her to the Temple, where she is fed each day by an angel.