Deuteronomy 9:5

It 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.

Berean Standard Bible
Other translations

King James Version

Not for thy righteousness, or for the uprightness of thine heart, dost thou go to possess their land: but for the wickedness of these nations the LORD thy God doth drive them out from before thee, and that he may perform the word which the LORD sware unto thy fathers, Abraham, Isaac, and Jacob.

World English Bible

Not for your righteousness or for the uprightness of your heart do you go in to possess their land; but for the wickedness of these nations the LORD your God does drive them out from before you, and that he may establish the word which the LORD swore to your fathers, to Abraham, to Isaac, and to Jacob.

American Standard Version

Not for thy righteousness, or for the uprightness of thy heart, dost thou go in to possess their land; but for the wickedness of these nations Jehovah thy God doth drive them out from before thee, and that he may establish the word which Jehovah sware unto thy fathers, to Abraham, to Isaac, and to Jacob.

Geneva Bible 1599

For thou entrest not to inherite their lande for thy righteousnesse, or for thy vpright heart: but for the wickednesse of those nations, the Lord thy God doth cast them out before thee, and that he might performe the worde which the Lord thy God sware vnto thy fathers, Abraham, Izhak, and Iacob.

Darby Translation

Not for thy righteousness, or for the uprightness of thy heart, dost thou enter in to possess their land, but for the wickedness of these nations doth Jehovah thy God dispossess them from before thee, and that he may perform the word which Jehovah swore unto thy fathers, to Abraham, to Isaac, and to Jacob.

Young's Literal Translation

not for thy righteousness, and for the uprightness of thy heart, art thou going in to possess their land; but for the wickedness of these nations is Jehovah thy God dispossessing them from before thee; and in order to establish the word which Jehovah hath sworn to thy fathers, to Abraham, to Isaac, and to Jacob;

Bible in Basic English

Not for your righteousness or because your hearts are upright are you going in to take their land; but because of the evil-doing of these nations the Lord your God is driving them out from before you, and to give effect to his oath to your fathers, Abraham, Isaac, and Jacob.

In context

4When 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.

6Understand, then, that it is not because of your righteousness that the LORD your God is giving you this good land to possess, for you are a stiff-necked people.

Read Deuteronomy 9