Here is, I. David’s endeavour to perfect himself in his religion, and to make himself (as we say) master of his business. He hopes to learn God’s righteous judgments. He knew much, but he was still pressing forward and desired to know more, as knowing this, that he had not yet attained; but as far as perfection is attainable in this life he reached towards it, and would not take up short of it. As long as we live we must be scholars in Christ’s school, and sit at his feet; but we should aim to be head-scholars, and to get into the highest form. God’s judgments are all righteous, and therefore it is desirable not only to learn them, but to be learned in them, mighty in the scriptures.
II. The use he would make of his divine learning. He coveted to be learned in the laws of God, not that he might make himself a name and interest among men, or fill his own head with entertaining speculations, but, 1. That he might give God the glory of his learning: I will praise thee when I have learned thy judgments, intimating that he could not learn unless God taught him, and that divine instructions are special blessings, which we have reason to be thankful for. Though Christ keeps a free-school, and teaches without money and without price, yet he expects his scholars should give him thanks both for his word and for his Spirit; surely it is a mercy worth thanks to be taught so gainful a calling as religion is. Those have learned a good lesson who have learned to praise God, for that is the work of angels, the work of heaven. It is an easy thing to praise God in word and tongue; but those only are well learned in this mystery who have learned to praise him with uprightness of heart, that is, are inward with him in praising him, and sincerely aim at his glory in the course of their conversation as well as in the exercises of devotion. God accepts only the praises of the upright. 2. That he might himself come under the government of that learning: When I shall have learned thy righteous judgments I will keep thy statutes. We cannot keep them unless we learn them; but we learn them in vain if we do not keep them. Those have well learned God’s statutes who have come up to a full resolution, in the strength of his grace, to keep them.
III. His prayer to God not to leave him: “O forsake me not! that is, leave me not to myself, withdraw not thy Spirit and grace from me, for then I shall not keep thy statutes.” Good men see themselves undone if God forsakes them; for then the tempter will be too hard for them. “Though thou seem to forsake me, and threaten to forsake me, and dost, for a time, withdraw from me, yet let not the desertion be total and final; for that is hell. O forsake me not utterly! for woe unto me if God departs from me.”