For all his judgments [were] before me
That is, the precepts of the law of God, which David had a respect unto, loved, took delight and pleasure in, and so had them all in his sight, and made them the rule of his actions; and the law of God is delighted in by regenerate persons, after the inward man; and though it is abolished as a covenant of works, it is a rule of walk and conversation to the saints; and as such they keep it in view, and regard it impartially, not only some of its precepts, but all. This in the highest and fullest sense was done by Christ, who was made under the law, in whose heart it was, and who came to fulfil it, and has completely fulfilled it;
and I did not put away his statutes from me;
in ( 2 Samuel 22:23 ) ; it is read, "and as for his statutes, I did not depart from them"; the sense is the same; this may have respect to the ceremonial law, and the ordinances of it, which David abode by, very strictly observed, renewed, and put in order; and which Christ, his antitype, never departed from, but conformed unto throughout the whole of his life; witness his circumcision, keeping of the passover, attendance on the synagogue and temple worship; nor did he put them away until they had their full accomplishment in him; when there was a disannulling of them because of their weakness and unprofitableness.