Overview
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 Bible's 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.
Christian tradition
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.
In Islam
Anne 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, Anne 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, Anne vowed to dedicate him to isolation and service in the Second Temple.
However, Anne bore a daughter instead, and named her Mary. Her words upon delivering Mary reflect her status as a great mystic, realising that while she had wanted a son, this daughter was God's gift to her:
From Wikipedia (CC BY-SA 4.0).