Thomas Aquinas,
Summa Theologiae — Question 13 - OF THE POSSIBILITY OF SATISFACTION…
“ I answer that, Satisfactory punishment has a twofold purpose, viz. to pay the debt, and to serve as a remedy for the avoidance of sin. Accordingly, as a remedy against future sin, the satisfaction of one does not profit another, for the flesh of one man is not tamed by another's fast; nor does one man acquire the habit of well-doing, through the actions of another, except accidentally, in so far as a man, by his good actions, may merit an increase of grace for another, since grace is the most efficacious remedy for the avoidance of sin. ”
