Deuteronomy 9:4-6 NIV

4 After the LORD your God has driven them out before you, do not say to yourself, “The LORD has brought me here to take possession of this land because of my righteousness.” No, it is on account of the wickedness of these nations that the LORD is going to drive them out before you.

References for Deuteronomy 9:4

5 It is not because of your righteousness or your integrity that you are going in to take possession of their land; but on account of the wickedness of these nations, the LORD your God will drive them out before you, to accomplish what he swore to your fathers, to Abraham, Isaac and Jacob.

References for Deuteronomy 9:5

6 Understand, 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.

References for Deuteronomy 9:6