18 when you shall listen to the voice of Yahweh your God, to keep all his commandments which I command you this day, to do that which is right in the eyes of Yahweh your God.
*Minor differences ignored. Grouped by changes, with first version listed as example.
When thou shalt hearken. Although this sentence depends on something else, (as may be seen by referring to it,) yet is it general, and extends to the commendation of the whole Law. Moses teaches first, that the rule of a holy life must be sought from the mouth of God; and then adds that He must be obeyed not partially, but universally. He confirms also what I have said respecting obedience, for men only please God when they listen to His voice. Moreover, the expression is worth our notice, wherein Moses only assumes for himself the character of a minister, and claims power for God alone; for he says that he commands, but expressly explains that the commandments which he sets before them are God's.
When thou shalt hearken to the voice of the Lord thy God,.... Not only in this case, but in all others:
to keep all his commandments which I command thee this day: the repetition of which he made unto them, and enjoined the observance of them in the name of the Lord:
to do that which is right in the eyes of the Lord thy God; which they would do, if they kept the commandments of the Lord, which are holy, just, and good, and must be right in his sight because commanded by him.
Jehovah would do this if Israel hearkened to His voice, to do what was right in His eyes. In what way the appropriation of property laid under the ban brought the wrath of God upon the whole congregation, is shown by the example of Achan (Josh 7).
*More commentary available at chapter level.