Deuteronomy 9:4-6 NASB1995
“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. 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.
“Know, then, it is not because of your righteousness that the LORD your God is giving you this good land to possess, for you are a stubborn people.
NASB1995: New American Standard Bible - NASB 1995