Cites this verse
I answer that, As stated above (Article [1]), sins pardoned through Penance are said to return, in so far as their debt of punishment, by reason of ingratitude, is virtually contained in the subsequent sin. Now one may be guilty of ingratitude in two ways: first by doing something against the favor received, and, in this way, man is ungrateful to God in every mortal sin whereby he offends God Who forgave his sins, so that by every subsequent mortal sin, the sins previously pardoned return, on account of the ingratitude. Secondly, one is guilty of ingratitude, by doing something not only against the favor itself, but also against the form of the favor received. If this form be considered on the part of the benefactor, it is the remission of something due to him; wherefore he who does not forgive his brother when he asks pardon, and persists in his hatred, acts against this form. If, however, this form be taken in regard to the penitent who receives this favor, we find on his part a twofold movement of the free-will. The first is the movement of the free-will towards God, and is an act of faith quickened by charity; and against this a man acts by apostatizing from the faith. The second is a movement of the free-will against sin, and is the act of penance. This act consists first, as we have stated above (Question [85], Articles [2],5) in man's detestation of his past sins; and against this a man acts when he regrets having done penance. Secondly, the act of penance consists in the penitent purposing to subject himself to the keys of the Church by confession, according to Ps. 31:5: "I said: I will confess against myself my injustice to the Lord: and Thou hast forgiven the wickedness of my sin": and against this a man acts when he scorns to confess as he had purposed to do.
Summa Theologiae III, q. 88, a. 2: Whether sins that have been forgiven, return through ingratitude which is shown especially in four kinds of sin? I answer that (tr. Fathers of the English Dominican Province)