Deuteronomy 9:5KJV
Not for thy righteousness, or for the uprightness of thine heart, dost thou go to possess their land: but for the wickedness of these nations the LORD thy God doth drive them out from before thee, and that he may perform the word which the LORD sware unto thy fathers, Abraham, Isaac, and Jacob.
Deuteronomy 9:5NCV
You are going in to take the land, not because you are good and honest, but because these nations are evil. That is why the Lord your God will force them out ahead of you, to keep his promise to your ancestors, to Abraham, Isaac, and Jacob.