Thomas Aquinas,
Summa Theologiae — Question 88 - OF THE RETURN OF SINS WHICH HAVE BEEN TAKEN AWAY BE PENANCE…
“ I answer that, The ingratitude of the sinner is sometimes a special sin; and sometimes it is not, but a circumstance arising from all mortal sins in common committed against God. For a sin takes its species according to the sinner's intention, wherefore the Philosopher says (Ethic. v, 2) that "he who commits adultery in order to steal is a thief rather than an adulterer."If, therefore, a sinner commits a sin in contempt of God and of the favor received from Him, that sin is drawn to the species of ingratitude, and in this way a sinner's ingratitude is a special sin. ”
