6:18 And thou shalt do [that which is] right and good in the {h} sight of the LORD: that it may be well with thee, and that thou mayest go in and possess the good land which the LORD swore to thy fathers,
(h) Here he condemns all of man's good intentions.
6:17-25 Moses gives charge to keep God's commandments. Negligence will ruin us; but we cannot be saved without diligence. It is our interest, as well as our duty, to be religious. It will be our life. Godliness has the promise of the continuance and comfort of the life that now is, as far as it is for God's glory. It will be our righteousness. It is only through the Mediator we can be righteous before God. The knowledge of the spirituality and excellency of the holy law of God, is suited to show sinful man his need of a Saviour, and to prepare his heart to welcome a free salvation. The gospel honours the law, not only in the perfect obedience of the Son of God, the Lord Jesus Christ; but in that it is a plan for bringing back apostate rebels and enemies, by repentance, faith, forgiveness, and renewing grace, to love God above all things, even in this world; and in the world above, to love him perfectly, even as angels love him.