If you listen to these ordinances and keep them carefully, then the LORD your God will keep His covenant and the loving devotion that He swore to your fathers.
12. Wherefore it shall come to pass. God appears so to act according to agreement, as to leave (His people) no hope of His favor, unless they perform their part of it; and undoubtedly this is the usual form of expression in the Law, in which the condition is inserted, that God will do good to His people if they have deserved it by their obedience.
Here, I. The caution against idolatry is repeated, and against communion with idolaters: "Thou shalt consume the people, and not serve their gods." Deu 7:16. We are in danger of having fellowship with the works of darkness if we take pleasure in fellowship with those that do those works. Here is also a repetition of the charge to destroy the images, Deu 7:25, Deu 7:26.
Commenting on Deuteronomy 7:12-26
Wherefore it shall come to pass, if ye hearken to these judgments, and keep and do them,.... Attentively listen to the declaration made of them, and be careful to observe them: that the Lord thy God shall keep unto thee the covenant and the mercy which he sware unto thy fathers; to bring them into the land of Canaan, and continue them in it; yea...