Deuteronomy 9:5-7

CLV(i) 5 It is not because of your own righteousness or the uprightness of your own heart that you are entering to tenant their country, for it is because of the wickedness of these nations that Yahweh your Elohim is evicting them before your face, so that He may confirm the word that Yahweh had sworn to your fathers, to Abraham, to Isaac and to Jacob. 6 Know then that it is not because of your own righteousness that Yahweh your Elohim is giving to you this good land to tenant it, for you are a stiff-necked people. 7 Remember, do not forget that you provoked Yahweh your Elohim to wrath in the wilderness. From the day in which you went forth from the country of Egypt until you came to this place, you were rebellious against Yahweh.