From another place Pope Benedict XVI noted in an Audence:
“A second consequence occurs in our life when we let work within us the Spirit of Christ and when the very relationship with God becomes so profound that no other reality or situation affects it. We understand that with prayer we are not liberated from trials and suffering, but we can live through them in union with Christ, with his suffering, in the hope of also participating in his glory (cf. Rom 8:17). Many times, in our prayer, we ask God to be freed from physical and spiritual evil, and we do it with great trust. However, often we have the impression of not being heard and we may well feel discouraged and fail to persevere. In reality, there is no human cry that is not heard by God and it is precisely in constant and faithful prayer that we comprehend with St Paul that “the sufferings of this present time are not worth comparing with the glory that is to be revealed to us” (Rom 8:18). Prayer does not exempt us from trial and suffering, indeed — St Paul says — we “groan inwardly as we wait for adoption as sons, the redemption of our bodies” (Rom 8:23). He says that prayer does not exempt us from suffering but prayer does permit us to live through it and face it with a new strength, with the confidence of Jesus, who — according to the Letter to the Hebrews — “In the days of his flesh, Jesus offered up prayers and supplications, with loud cries and tears, to him [God] who was able to save him from death, and he was heard for his godly fear” (5:7). The answer of God the Father to the Son, to his loud cries and tears, was not freedom from suffering, from the cross, from death, but a much greater fulfillment, an answer much more profound; through the cross and death God responded with the Resurrection of the Son, with new life. Prayer animated by the Holy Spirit leads us too to live every day a journey of life with its trials and sufferings, with the fullness of hope, with trust in God who answers us as he answered the Son.”
vatican.va/holy_father/benedict_xvi/audiences/2012/documents/hf_ben-xvi_aud_20120516_en.html