According to Christian apocryphal and Islamic tradition, Saint Anne was the mother of Mary, the wife of Joachim and the maternal grandmother of Jesus. Mary's mother is not named in the canonical gospels. In writing, Anne's name and that of her husband Joachim come only from New Testament apocrypha, of which the Gospel of James (written perhaps around 150 AD) seems to be the earliest that mentions them.
The mother of Mary is mentioned but not named in the Quran.
The story is similar to that of Samuel, whose mother Hannah ( Ḥannāh "favour, grace"; etymologically the same name as Anne) had also been childless. The Immaculate Conception was eventually made dogma by the Catholic Church following an increased devotion to Anne in the twelfth century. Dedications to Anne in Eastern Christianity occur as early as the sixth century. In the Eastern Orthodox tradition, Anne and Joachim are ascribed the title Ancestors of God, and both the Nativity of Mary and the Presentation of Mary are celebrated as two of the twelve Great Feasts of the Orthodox Church. The Dormition of Anne is also a minor feast in Eastern Christianity. In Lutheran Protestantism, it is held that Martin Luther chose to enter religious life as an Augustinian friar after invoking St. Anne while endangered by lightning.
Anne (Ḥannah) is also revered in Islam, recognized as a highly spiritual woman and as the mother of Mary. She is not named in the Quran, where she is referred to as "the wife of Imran". The Quran describes her remaining childless until her old age. One day, Hannah saw a bird feeding its young while sitting in the shade of a tree, which awakened her desire to have children of her own. She prayed for a child and eventually conceived; her husband, Imran, died before the child was born. Expecting the child to be male, Hannah vowed to dedicate him to isolation and service in the Second Temple.
However, Hannah bore a daughter instead, and named her Mary.