Deuteronomy 11:8-12, 9:5-6
8 “You shall therefore keep the whole commandment that I command you today, that you may be strong, and go in and take possession of the land that you are going over to possess, 9 and that you may live long in the land that the Lord swore to your fathers to give to them and to their offspring, a land flowing with milk and honey. 10 For the land that you are entering to take possession of it is not like the land of Egypt, from which you have come, where you sowed your seed and irrigated it, like a garden of vegetables. 11 But the land that you are going over to possess is a land of hills and valleys, which drinks water by the rain from heaven, 12 a land that the Lord your God cares for. The eyes of the Lord your God are always upon it, from the beginning of the year to the end of the year.
9:5 Not 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 the word that the Lord swore to your fathers, to Abraham, to Isaac, and to Jacob.
6 “Know, therefore, that the Lord your God is not giving you this good land to possess because of your righteousness, for you are a stubborn people.