III. David's acknowledgment of the grace of God (v. 6), both his good-will towards us ("thou desirest truth in the inward parts, thou wouldst have us all honest and sincere, and true to our profession") and his good work in us—"In the hidden part thou hast made," or shalt make, "me to know wisdom." Note, 1. Truth and wisdom will go very far towards making a man a good man. A clear head and a sound heart (prudence and sincerity) bespeak the man of God perfect. 2. What God requires of us he himself works in us, and he works it in the regular way, enlightening the mind, and so gaining the will. But how does this come in here? (1.) God is hereby justified and cleared: "Lord, thou was not the author of my sin; there is no blame to be laid upon thee; but I alone must bear it; for thou has many a time admonished me to be sincere, and hast made me to know that which, if I had duly considered it, would have prevented my falling into this sin; had I improved the grace thou hast given me, I should have kept my integrity." (2.) The sin is hereby aggravated: "Lord, thou desirest truth; but where was it when I dissembled with Uriah? Thou hast made me to know wisdom; but I have not lived up to what I have known." (3.) He is hereby encouraged, in his repentance, to hope that God would graciously accept him; for, [1.] God had made him sincere in his resolutions never to return to folly again: Thou desirest truth in the inward part; this is that which God has an eye to in a returning sinner, that in his spirit there be no guile, Ps. xxxii. 2. David was conscious to himself of the uprightness of his heart towards God in his repentance, and therefore doubted not but God would accept him. [2.] He hoped that God would enable him to make good his resolutions, that in the hidden part, in the new man, which is called the hidden man of the heart (1 Pet. iii. 4), he would make him to know wisdom, so as to discern and avoid the designs of the tempter another time. Some read it as a prayer: "Lord, in this instance, I have done foolishly; for the future make me to know wisdom." Where there is truth God will give wisdom; those that sincerely endeavour to do their duty shall be taught their duty.