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.
In detail, once as Anna prayed beneath a laurel tree near her home in Galilee, an angel appeared and said to her, "Anna, the Lord hath heard thy prayer and thou shalt conceive and bring forth, and thy seed shall be spoken of in all the world." Anna replied, "As the Lord my God liveth, 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 " And thus Anna became the mother of the Blessed Virgin Mary.
The feast (name) day of St. Anna and St. Joachim is July 26.