Verse 22. - For all his judgments werebefore me;i.e. "all his commandments" (compare the use of the same word (מִשׁפַט throughout the hundred and nineteenth psalm). And I did not put away his statutesfrom me. The wicked are said to "cast God's commandments behind their back" (1 Kings 14:9; Nehemiah 9:26; Psalm 50:17; Ezekiel 23:35). David declares that he had never so acted; he had kept God's statutes always well before him, had borne them in mind, and given heed to them.
18:20-28 Those that forsake the ways of the Lord, depart from their God. But though conscious to ourselves of many a false step, let there not be a wicked departure from our God. David kept his eye upon the rule of God's commands. Constant care to keep from that sin, whatever it be, which most easily besets us, proves that we are upright before God. Those who show mercy to others, even they need mercy. Those who are faithful to God, shall find him all that to them which he has promised to be. The words of the Lord are pure words, very sure to be depended on, and very sweet to be delighted in. Those who resist God, and walk contrary to him, shall find that he will walk contrary to them, Le 26:21-24. The gracious recompence of which David spoke, may generally be expected by those who act from right motives. Hence he speaks comfort to the humble, and terror to the proud; Thou wilt bring down high looks. And he speaks encouragement to himself; Thou wilt light my candle: thou wilt revive and comfort my sorrowful spirit; thou wilt guide my way, that I may avoid the snares laid for me. Thou wilt light my candle to work by, and give me an opportunity of serving thee. Let those that walk in darkness, and labour under discouragements, take courage; God himself will be a Light to them.
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.
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.