Deuteronomy 9:5-6 NIV

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

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

References for Deuteronomy 9:6