Deuteronomy 9 4
“Do not say in your heart when the Lord your God has driven them away from you, ‘Because of my righteousness the Lord has brought me in to take possession of this land.’ Rather, it is because of the wickedness of these nations that the Lord is dispossessing them before you.