Deuteronomy 9:5-7 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

The Golden Calf

7 Remember this and never forget how you provoked8 the LORD your God to anger in the desert. From the day you left Egypt until you arrived here, you have been rebellious9 against the LORD.10

References for Deuteronomy 9:7