30 “Sacrifice of praise shall glorify Me”. How shall “sacrifice of praise glorify Me”? Assuredly sacrifice of praise does no wise profit evil men, because they take Your Covenant in their mouth, and do damnable things that displease Your eyes. Straightway, he says, even to them this I say, “Sacrifice of praise shall glorify Me.” For if you live ill and speakest good words, not yet do you praise: but again, if, when you begin to live well, to your merits thou dost ascribe your living well, not yet do you praise....Therefore the Publican went down justified, rather than that Pharisee. Therefore hear ye that live well, hear ye that live ill: “Sacrifice of praise shall glorify Me.” No one offers Me this sacrifice, and is evil. I say not, Let there not offer Me this any one that is evil; but no one does offer Me this, that is evil. For he that praises, is good: because if he praises, he does also live well, because if he praises, not only with tongue he praises, but life also with tongue does agree.
Source: The Enarrations, or Expositions, on the Psalms (New Advent)