Deuteronomy 9:5
"It is not for your righteousness or for the uprightness of your heart that you are going to possess their land, but {it is} because of the wickedness of these nations {that} the Lord your God is driving them out before you, in order to confirm the oath which the Lord swore to your fathers, to Abraham, Isaac and Jacob.