Deuteronomy 9:4

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.
BSB · Berean Standard Bible
Speak not thou in thine heart, after that the Lord thy God hath cast them out from before thee, saying, For my righteousness the Lord hath brought me in to possess this land: but for the wickedness of these nations the Lord doth drive them out from before thee.
KJV · King James Version
Don’t say in your heart, after the Lord your God has thrust them out from before you, “For my righteousness the Lord has brought me in to possess this land;” because the Lord drives them out before you because of the wickedness of these nations.
WEB · World English Bible
Speak not thou in thy heart, after that Jehovah thy God hath thrust them out from before thee, saying, For my righteousness Jehovah hath brought me in to possess this land; whereas for the wickedness of these nations Jehovah doth drive them out from before thee.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

Speak not
Deuteronomy 9:5; Deuteronomy 7:7, 8; Deuteronomy 8:17; Ezekiel 36:22, 32; Romans 11:6, 20; 1 Corinthians 4:4, 7; Ephesians 2:4, 5; 2 Timothy 1:9; Titus 3:3–5
for the wickedness
Deuteronomy 12:31; Deuteronomy 18:12; Genesis 15:16; Leviticus 18:24, 25