I will praise thee with uprightness of heart
In the most sincere manner, in the most affectionate way, with the whole heart; sensible of great favours received, and great obligations laid under; see ( Psalms 9:1 ) ;
when I shall have learned thy righteous judgments;
or, "the judgments of thy righteousness" F15: of the righteousness of God, declared in his righteous law; which is founded upon, and is according to, the strictest rules of justice and equity; and so are all the precepts of it: and of the righteousness of Christ, revealed in the Gospel; by which God appears to be just, while he is the justifier of him that believes in Jesus. Now the precepts of the one, and the doctrines of the other, are to be learned, and learned of God, in his word and by his Spirit. The psalmist had been learning them, but was desirous of learning more of them, not being a complete proficient in them; and of learning them, not merely in the theory, but in the practice and experience of them; which, when he had attained unto, as he hoped he should, it would be matter of the most sincere praise and thankfulness.