6. He prays for the restoration of divine comforts and the perpetual communications of divine grace, v. 12. David finds two ill effects of his sin:—(1.) It had made him sad, and therefore he prays, Restore unto me the joy of thy salvation. A child of God knows no true nor solid joy but the joy of God's salvation, joy in God his Saviour and in the hope of eternal life. By wilful sin we forfeit this joy and deprive ourselves of it; our evidences cannot but be clouded and our hopes shaken. When we give ourselves so much cause to doubt of our interest in the salvation, how can we expect the joy of it? But, when we truly repent, we may pray and hope that God will restore to us those joys. Those that sow in penitential tears shall reap in the joys of God's salvation when the times of refreshing shall come. (2.) It had made him weak, and therefore he prays, "Uphold me with the free Spirit: I am ready to fall, either into sin or into despair; Lord, sustain me; my own spirit" (though the spirit of a man will go far towards the sustaining of his infirmity) "is not sufficient; if I be left to myself, I shall certainly sink; therefore uphold me with thy Spirit, let him counterwork the evil spirit that would cast me down from my excellency. Thy Spirit is a free spirit, a free agent himself, working freely" (and that makes those free whom he works upon, for where the Spirit of the Lord is there is liberty)—"thy ingenuous princely Spirit." He was conscious to himself of having acted, in the matter of Uriah, very disingenuously and unlike a prince; his behaviour was base and paltry: "Lord," says he, "let thy Spirit inspire my soul with noble and generous principles, that I may always act as becomes me." A free spirit will be a firm and fixed spirit, and will uphold us. The more cheerful we are in our duty the more constant we shall be to it.