Deuteronomy 9:5-7

LEB(i) 5 It is not because of your righteousness and because of the uprightness of your heart that you are coming to take possession of their land, but because of the wickedness of these nations Yahweh your God is driving them before you,* and in order to confirm the promise* that Yahweh swore to your ancestors,* to Abraham, to Isaac, and to Jacob. 6 "So you should understand that it is not because of your righteousness that Yahweh your God is giving you this good land to take possession of it, because you are a stubborn people. * 7 Remember, do not forget,* that you provoked Yahweh your God in the desert, and from the day that you went out from the land of Egypt until you came to this place* you were rebelling against Yahweh.