2 “I will make confession unto You, O Lord,” he says, “with my whole heart”. Confession is not always confession of sins, but the praise of God is poured forth in the devotion of confession. The former mourns, the latter rejoices: the former shows the wound to the physician, the latter gives thanks for health. The latter confession signifies some one, not merely freed from every evil, but even separate from all the ill-disposed. And for this reason let us consider the place where he confesses unto the Lord with all his heart. “In the counsel,” he says, “of the upright, and in the congregation:” I suppose, of those who shall “sit upon the twelve thrones, judging the twelve tribes of Israel.” For there will be no longer an unjust man among them, the thefts of no Judas are allowed, no Simon Magus is baptized, wishing to buy the Spirit, while he designs to sell it; no coppersmith like Alexander does many evil deeds, no man covered with sheep's clothing creeps in with feigned fraternity; such as those among whom the Church must now groan, and such as she must then shut out, when all the righteous shall be gathered together.
“These are the great works of the Lord, sought out unto all His wills”: through which mercy forsakes none who confesses, no man's wickedness is unpunished....Let man choose for himself what he lists: the works of the Lord are not so constituted, that the creature, having free discretion allowed him, should transcend the will of the Creator, even though he act contrary to His will. God wills not that you should sin; for He forbids it: yet if you have sinned, imagine not that the man has done what he willed, and that has happened to God which He willed not. For as He would that man would not sin, so would He spare the sinner, that he may return and live; He so wills finally to punish him who persists in his sin, that the rebellious cannot escape the power of justice. Thus whatever choice you have made, the Almighty will not be at a loss to fulfil His will concerning you.
Source: The Enarrations, or Expositions, on the Psalms (New Advent)