Deuteronomy 9:5

ERV(i) 5 Not for thy righteousness, or for the uprightness of thine heart, dost thou go in to possess their land: but for the wickedness of these nations the LORD thy God doth drive them out from before thee, and that he may establish the word which the LORD sware unto thy fathers, to Abraham, to Isaac, and to Jacob.