He assigns the reason for what he says, namely, that he does not want to pain them, when he says, for if I cause you pain, who is there to make me glad but the one whom I have pained? In regard to this he does two things: first, he deals with the reason why he did not wish to pain them; secondly, he shows why he tells them this (v. 3).
He says, therefore: the reason why I did not wish you to fall into sadness was that your sadness pains me, and I rejoice in your consolation; and you only console me when I am with you. Hence, if I had come and pained you, I would be sad at your sadness; then t...here would be no one among you to gladden me, because you would be sad on my account. For one who is sad does not easily console another person: "A wise son makes a glad father, but a foolish son is a sorrow to his mother" (Prov. 10:1); "He who loves wisdom makes his father glad" (Prov. 29:3). Or in another way, there are two kinds of sadness. One is according to the world, and the other according to God who produces repentance leading to salvation. The Apostle is not speaking of the first, but of the second. He says: I will be consoled if I cause you pain, i.e., if by scolding you I bring you to repentance; but if I had come and seen you unrepentant of your sins, I would have had no consolation, because no one is sad and repentant because of me, i.e., because of my correction and rebuke.
Source: Commentary on 2 Corinthians