Faith is a force of consolation in suffering
Christians know that suffering cannot be eliminated, yet it can have meaning and become an act of love and entrustment into the hands of God who does not abandon us; in this way it can serve as a moment of growth in faith and love... Nor does the light of faith make us forget the sufferings of this world. How many men and women of faith have found mediators of light in those who suffer! So it was with Saint Francis of Assisi and the leper, or with Mother Teresa of Calcutta and her poor. They understood the mystery at work in them. In drawing near to the suffering, they were certainly not able to eliminate all their pain or to explain every evil. Faith is not a light which scatters all our darkness, but a lamp which guides our steps in the night and suffices for the journey.
To those who suffer, God does not provide arguments which explain everything; rather, his response is that of an accompanying presence, a history of goodness which touches every story of suffering and opens up a ray of light. In Christ, God himself wishes to share this path with us and to offer us his gaze so that we might see the light within it. Christ is the one who, having endured suffering, is "the pioneer and perfecter of our faith" (Heb 12:2).
Encyclical « Lumen fidei / The Light of faith», § 56-57