Deuteronomy 9:5-7 English Standard Version Anglicised (ESVUK)
5 Not because of your righteousness or the uprightness of your heart are you going in to possess their land, but because of the wickedness of these nations the Lord your God is driving them out from before you, and that he may confirm the word that the Lord swore to your fathers, to Abraham, to Isaac, and to Jacob.
6 “Know, therefore, that the Lord your God is not giving you this good land to possess because of your righteousness, for you are a stubborn people. 7 Remember and do not forget how you provoked the Lord your God to wrath in the wilderness. From the day you came out of the land of Egypt until you came to this place, you have been rebellious against the Lord.