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.

Berean Standard Bible
Other translations

King James Version

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.

World English Bible

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.

American Standard Version

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.

Geneva Bible 1599

Speake not thou in thine heart (after that the Lord thy God hath cast them out before thee) saying, For my righteousnesse the Lord hath brought me in, to possesse this land: but for the wickednesse of these nations the Lord hath cast them out before thee.

Darby Translation

Thou shalt not say in thy heart, when Jehovah thy God thrusteth them out from before thee, saying, For my righteousness Jehovah hath brought me in to possess this land; but for the wickedness of these nations doth Jehovah dispossess them from before thee.

Young's Literal Translation

'Thou dost not speak in thy heart (in Jehovah thy God's driving them away from before thee), saying, For my righteousness hath Jehovah brought me in to possess this land, seeing for the wickedness of these nations is Jehovah dispossessing them from thy presence;

Bible in Basic English

And after the Lord has sent them in flight from before you, say not in your heart, Because of my righteousness the Lord has given me this land; when it is because of their evil-doing that the Lord is driving these nations out before you.

In context

3But understand that today the LORD your God goes across ahead of you as a consuming fire; He will destroy them and subdue them before you. And you will drive them out and annihilate them swiftly, as the LORD has promised you.

5It is not because of your righteousness or uprightness of heart that you are going in to possess their land, but it is because of their wickedness that the LORD your God is driving out these nations before you, to keep the promise He swore to your fathers, to Abraham, Isaac, and Jacob.

Read Deuteronomy 9