Deuteronomy 9:5-6

5 aNot because of your righteousness or the uprightness of your heart are you going in to possess their land, but because of the wickedness of these nations the Lord your God is driving them out from before you, and that he may confirm bthe word that the Lord swore to your fathers, to Abraham, to Isaac, and to Jacob.

6Know, therefore, that the Lord your God is not giving you this good land to possess because of your righteousness, for you are ca stubborn people.
Copyright information for ESV