Deuteronomy 6:18

18 aAnd you shall do what is right and good in the sight of the Lord, that it may go well with you, and that you may go in and take possession of the good land that the Lord swore to give to your fathers

Deuteronomy 9:5

5 bNot because of your righteousness or the uprightness of your heart are you going in to possess their land, but because of the wickedness of these nations the Lord your God is driving them out from before you, and that he may confirm cthe word that the Lord swore to your fathers, to Abraham, to Isaac, and to Jacob.

Copyright information for ESV