Deuteronomy 9:5

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.

Copyright information for ESV