32 But whether keenly contending, that we be not overcome, or overcoming various times, or even with unhoped and unlooked for ease, let us give the glory unto Him Who gives continence unto us. Let us remember that a certain just man said, “I shall never be moved:” and that it was showed him how rashly he had said this, attributing as though to his own strength, what was given to him from above. But this we have learned from his own confession: for soon after he added, “Lord, in Your will You have given strength to my beauty; but You have turned away Your Face, and I was troubled.” Through a remedial Providence he was for a short time deserted by his Ruler, in order that he might not himself through deadly pride desert his Ruler. Therefore, whether here, where we engage with our faults in order to subdue and make them less, or there, as it shall be in the end, where we shall be void of every enemy, because of all infection, it is for our health that we are thus dealt with, in order that, “whoso glories, he may glory in the Lord.”
Source: On Continence (New Advent)