When the LORD your God has driven them out before you, do not say in your heart, “Because of my righteousness the LORD has brought me in to possess this land.” Rather, the LORD is driving out these nations before you because of their wickedness.
Jewish Publication Society of America Version (JPS1917) - Deuteronomy 9:4 >Speak not thou in thy heart, after that the LORD thy God hath thrust them out from before thee, saying: 'For my righteousness the LORD hath brought me in to possess this land'; whereas for the wickedness of these nations the LORD doth drive them out from before thee.