According to tradition, Joachim went to a temple to pray, but was not allowed in because he did not have a child. Anna heard, prayed, and sacrificed. She promised God that she would bring up a child in God's name. An angel came to Anna and Joachim and told them that God would grant her a baby. Anna had the baby soon after and named the girl Mary. Anna kept her promise. When Mary was about three years old Joachim and Anna brought her up in the Second Temple.
Once, as Anna prayed beneath a laurel tree near her home in Galilee, an angel appeared and said to her, "Anna, Anna, the Lord has heard your prayer, and you shall conceive, and shall bring forth; and your seed shall be spoken of in all the world." Anna replied, "As the Lord my God lives, if I beget either male or female, I will bring it as a gift to the Lord my God; and it shall minister to Him in holy things all the days of its life." This is how Anna became the mother of the Blessed Virgin Mary.
The feast (name) day of St. Anna and St. Joachim is July 26.