Deuteronomy 9:5

Overview - Deuteronomy 9
Moses dissuades them from the opinion of their own righteousness, by rehearsing their several rebellions.
Treasury of Scripture Knowledge

Deuteronomy 9:5  (King James Version)
Not for thy righteousness, or for the uprightness of thine heart, dost thou go 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 perform the word which the LORD sware unto thy fathers, Abraham, Isaac, and Jacob.

Not for
Though the Canaanites were expelled for their wickedness, it does not follow, that the Israelites were established in their room on account of any distinguished virtue, or because they deserved it. On many occasions, it may be seen in the history of the world, that God punishes the wicked by the instrumentality of other men, who are as wicked as themselves. Not the Israelites' righteousness, but the wickedness of the inhabitants, and the promise of God to their fathers, was the cause of their obtaining Canaan.
Titus 3:5

that he may
Genesis 12:7 ; 13:15 15:7 17:8 26:4 28:13 Exodus 32:13 ; Ezekiel 20:14
Micah 7:20 ; Luke 1:54 Luke 1:55 ; Acts 3:25 ; Acts 13:32 Acts 13:33 Romans 11:28 ; 15:8