Summary

Portrait of Thomas Aquinas Thomas Aquinas Summa Theologiae — Question 87 - OF THE DEBT OF PUNISHMENT…

A satisfactory punishment is, in a way, voluntary. And since those who differ as to the debt of punishment, may be one in will by the union of love, it happens that one who has not sinned, bears willingly the punishment for another: thus even in human affairs we see men take the debts of another upon themselves. If, however, we speak of punishment simply, in respect of its being something penal, it has always a relation to a sin in the one punished. Sometimes this is a relation to actual sin, as when a man is punished by God or man for a sin committed by him.
Source: Wikisource

Portrait of Thomas Aquinas Thomas Aquinas Summa Theologiae — Question 87 - OF THE DEBT OF PUNISHMENT…

Now it is evident that in all actual sins, when the act of sin has ceased, the guilt remains; because the act of sin makes man deserving of punishment, in so far as he transgresses the order of Divine justice, to which he cannot return except he pay some sort of penal compensation, which restores him to the equality of justice; so that, according to the order of Divine justice, he who has been too indulgent to his will, by transgressing God's commandments, suffers, either willingly or unwillingly, something contrary to what he would wish.
Source: Wikisource

Portrait of Thomas Aquinas Thomas Aquinas Summa Theologiae — Question 87 - OF THE DEBT OF PUNISHMENT…

Even when God punishes men by permitting them to fall into sin, this is directed to the good of virtue. Sometimes indeed it is for the good of those who are punished, when, to wit, men arise from sin, more humble and more cautious. But it is always for the amendment of others, who seeing some men fall from sin to sin, are the more fearful of sinning. With regard to the other two ways, it is evident that the punishment is intended for the sinner's amendment, since the very fact that man endures toil and loss in sinning, is of a nature to withdraw man from sin.
Source: Wikisource

Get perspective with Kwize: daily news enlightened by great literature