In book 5, Ch. 8 of St. Augustine’s
Confessions, Augustine tells of the time he left for Rome. His mother begged him not to go and prayed constantly, but Augustine deceived her and left anyways:
"She would not return home without me, but I managed with some difficulty to persuade her to spend the night in a place near the ship where there was an oratory in memory of St. Cyprian. That night I stole away without her: she remained praying and weeping. And what was she praying for, O my God, with all those tears but that you should not allow me to sail! But You saw deeper and granted the essential of her prayer: You did not do what she was at that moment asking, that You might do the thing she was always asking.
The wind blew and filled our sails and the shore dropped from our sight. And the next morning she was frantic with grief and filled Your ears with her moaning and complaints because you seemed to treat her tears so lightly, when in fact You were using my own desires to snatch me away for the healing of those desires, and were justly punishing her own too earthly affection for me with the scourge of grief. For she loved to have me with her, as is the way of mothers, but far more than most mothers; and she did not realise what joys you would bring her from my going away. She did not realise it, and so she wept and lamented, and by the torments she suffered showed the heritage of Eve in her, seeking with sorrow what in sorrow she had brought forth. But when she had poured out all her accusation at my cruel deception, she turned once more to prayer to You for me. She went home and I to Rome."
Throughout her life, St. Monica prayed endlessly for God to bring her son, St. Augustine, to the Catholic faith. When her son was leaving for Rome, she wept and prayed to God not to let him leave, but it appeared that God ignored her prayers, as Augustine sailed for Rome anyways.
However, Augustine reveals that he now sees that, while God did not grant her what she was asking in the moment, He did so only to allow a greater good to come of it; to better bring about what Monica had prayed for for Augustine’s entire life.
After sailing to Rome, Augustine eventually caught the eye of a Roman official who recommended him for the position of public orator for the city of Milan. In Milan, a combination of his studies, his mother’s devotion, the urging of his friend Simplicianus, and the influence of Bishop Ambrose led Augustine to embrace Catholicism. After his conversion, St. Augustine went on to become a priest, the Bishop of Hippo, one of the most important Church Fathers, and a saint that has been an inspiration to Christianity for centuries.
So, while it may sometimes seem that God is ignoring our prayers in the moment, always remember that He does so only to bring about a greater good and a greater manifestation of His will in our lives.