And this is obvious, for what I have forgiven, if I have forgiven anything, has been for your sake in the person of Christ. In this he touches four things required for such pardon or forgiveness. The first is discernment, so that pardon is not granted indiscriminately and rashly; hence he says, if I have forgiven anything, namely, in the proper way: "Let your eyes look directly forward" (Prov. 4:25). The second is the end, because it should be done not for love or hatred, but for some benefit to the Church or others; hence he says, it has been for your sake. The third is authority, because it ...should not be done on one's own authority, but Christ's, who forgives sin by authority, but the others to whom it has been entrusted, forgive as ministers and members of Christ; hence he says, in the person of Christ, namely, not by my own authority. Yet whatever is forgiven, Christ forgives: "If you forgive the sins of any they are forgiven" (Jn. 20:23). The fourth is need; hence he says, to keep Satan from gaining the advantage over us. For the devil had deceived many: some by leading them to commit sins, and others by excessive rigor against sinners; so that if Satan cannot get them for having committed sin, he at least destroys those he already has by the severity of prelates who drive them to despair by not correcting them in a compassionate way. Hence, he destroys these, and the others he puts in the snare of the devil: "Be not righteous overmuch" (Ecc. 7:16); "Your adversary the devil prowls around like a roaring lion, seeking someone to devour" (1 Pet. 5:8). And this will happen to us if we do not forgive sinners. Therefore that we might not be deceived by Satan, to keep Satan from gaining the advantage over us, I have forgiven, if I have forgiven anything, for we are not ignorant of his designs, namely, those of Satan. This is true in general, but in particular no one can know his thoughts but God alone: "Who can strip off his outer garment? Who can penetrate into the midst of his mouth?" (Jb. 41:13, Vulgate).
Source: Commentary on 2 Corinthians