4 After the Lord your God has driven them out before you, do not say to yourself, "The Lord has brought me here to take possession of this land because of my righteousness." No, it is on account of the wickedness of these nations that the Lord is going to drive them out before you.
4 Speak not thou in thine heart, after that the Lord thy God hath cast them out from before thee, saying, For my righteousness the Lord hath brought me in to possess this land: but for the wickedness of these nations the Lord doth drive them out from before thee.
4 "Do not say in your heart, after the Lord your God has thrust them out before you, 'It is because of my righteousness that the Lord has brought me in to possess this land,' whereas it is because of the wickedness of these nations that the Lord is driving them out before you.
4 But when God pushes them out ahead of you, don't start thinking to yourselves, "It's because of all the good I've done that God has brought me in here to dispossess these nations." Actually it's because of all the evil these nations have done.
4 Do not think in your heart, after the Lord your God has cast them out before you, saying, 'Because of my righteousness the Lord has brought me in to possess this land'; but it is because of the wickedness of these nations that the Lord is driving them out from before you.
4 "After the Lord your God has done this for you, don't say in your hearts, 'The Lord has given us this land because we are such good people!' No, it is because of the wickedness of the other nations that he is pushing them out of your way.
12 That is why the Israelites cannot stand against their enemies; they turn their backs and run because they have been made liable to destruction. I will not be with you anymore unless you destroy whatever among you is devoted to destruction.
12 Therefore the children of Israel could not stand before their enemies, but turned their backs before their enemies, because they were accursed: neither will I be with you any more, except ye destroy the accursed from among you.
12 Therefore the people of Israel cannot stand before their enemies. They turn their backs before their enemies, because they have become devoted for destruction.
12 The People of Israel can no longer look their enemies in the eye - they themselves are plunder. I can't continue with you if you don't rid yourselves of the cursed things.
12 Therefore the children of Israel could not stand before their enemies, but turned their backs before their enemies, because they have become doomed to destruction. Neither will I be with you anymore, unless you destroy the accursed from among you.
12 That is why the Israelites are running from their enemies in defeat. For now Israel itself has been set apart for destruction. I will not remain with you any longer unless you destroy the things among you that were set apart for destruction.
(Read Joshua 7:10-15)
God awakens Joshua to inquiry, by telling him that when this accursed thing was put away, all would be well. Times of danger and trouble should be times of reformation. We should look at home, into our own hearts, into our own houses, and make diligent search to find out if there be not some accursed thing there, which God sees and abhors; some secret lust, some unlawful gain, some undue withholding from God or from others. We cannot prosper, until the accursed thing be destroyed out of our hearts, and put out of our habitations and our families, and forsaken in our lives. When the sin of sinners finds them out, God is to be acknowledged. With a certain and unerring judgment, the righteous God does and will distinguish between the innocent and the guilty; so that though the righteous are of the same tribe, and family, and household with the wicked, yet they never shall be treated as the wicked.
Matthew Henry's Commentary on Deuteronomy 9:4
Commentary on Deuteronomy 9:1-6
(Read Deuteronomy 9:1-6)
Moses represents the strength of the enemies they were now to encounter. This was to drive them to God, and engage their hope in him. He assures them of victory, by the presence of God with them. He cautions them not to have the least thought of their own righteousness, as if that procured this favour at God's hand. In Christ we have both righteousness and strength; in Him we must glory, not in ourselves, nor in any sufficiency of our own. It is for the wickedness of these nations that God drives them out. All whom God rejects, are rejected for their own wickedness; but none whom he accepts are accepted for their own righteousness. Thus boasting is for ever done away: see Ephesians 2:9,11,12.