And well can I say this with certainty, because all things are for your benefit. For all things, the sufferings we endure, the graces we receive from God, are for your sake, namely, that you be instructed by our example. And this, therefore, so that as grace extends from us, in you to more and more people it may increase thanksgiving to the glory of God, i.e., that many may thank God for so great a favor: "Always and for everything giving thanks in the name of our Lord Jesus Christ to God the Father" (Eph. 5:20).
Source: Commentary on 2 Corinthians