Cites this verse
Reply to Objection 1: To acknowledge a fault where there is none, may be understood in two ways: first, as referring to the substance of the act, and then it is untrue; for it is a mark, not of a good, but of an erroneous conscience, to acknowledge having done what one has not done. Secondly, as referring to the circumstances of the act, and thus the saying of Gregory is true, because a just man fears lest, in any act which is good in itself, there should be any defect on his part. thus it is written (Job 9:28): "I feared all my works." Wherefore it is also the mark of a good conscience that a man should accuse himself in words of this fear which he holds in his thoughts.
Summa Theologiae Supplement, q. 6, a. 4: Whether it is lawful for a man to confess a sin which he has not committed? Reply to Objection 1 (tr. Fathers of the English Dominican Province)