Deuteronomy 9:4yarash
"Do not say in your heart when the Lord your God has driven them out before you, 'Because of my righteousness the Lord has brought me in to possess this land,' but {it is} because of the wickedness of these nations {that} the Lord is dispossessing them before you.
Nations driven out for their wickedness, not Israel's righteousness.
1 Samuel 26:19garash
"Now therefore, please let my lord the king listen to the words of his servant. If the Lord has stirred you up against me, let Him accept an offering; but if it is men, cursed are they before the Lord, for they have driven me out today so that I would have no attachment with the inheritance of the Lord, saying, 'Go, serve other gods.'
Daniel 9:7nadach
"Righteousness belongs to You, O Lord, but to us open shame, as it is this day--to the men of Judah, the inhabitants of Jerusalem and all Israel, those who are nearby and those who are far away in all the countries to which You have driven them, because of their unfaithful deeds which they have committed against You.