Deuteronomy 9:4

a “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 b because of the wickedness of these nations that the  Lord is driving them out before you.
Copyright information for ESV