Deuteronomy 9:4

4 "1Do not say in your heart when the LORD your God has driven them out before * you, 'Because of my righteousness the LORD has brought me in to possess this land,' but it is 2because of the wickedness of these nations that the LORD is dispossessing them before * you.