You will note that God often reminded Israel that their possession and occupation of the Land was contingent on their LOVING obedience and faithfulness to God. HOWEVER God’s promise is unconditional and has not negated Israel’s inheritance of the Land as you see from today’s final verse.
After years of rebellion and idolatry God had to expel them from the Land as discipline, but for thousands of years Israel clung to His promise to bring them back…and indeed He has.
Deuteronomy 1:6-8, 21: The LORD our God spoke to us in Horeb, saying: ‘You have dwelt long enough at this mountain. Turn and take your journey, and go to the mountains of the Amorites, to all the neighboring places in the plain, in the mountains and in the lowland, in the South and on the seacoast, to the land of the Canaanites and to Lebanon, as far as the great river, the River Euphrates. See, I have set the land before you; go in and possess the land which the Lord swore to your fathers—to Abraham, Isaac, and Jacob—to give to them and their descendants after them. Look, the Lord your God has set the land before you; go up and possess it, as the Lord God of your fathers has spoken to you; do not fear or be discouraged.’
Deuteronomy 5:32-33: “Therefore you shall be careful to do as the Lord your God has commanded you; you shall not turn aside to the right hand or to the left. You shall walk in all the ways which the Lord your God has commanded you, that you may live and that it may be well with you, and that you may prolong your days in the land which you shall possess.
Ezekiel 36:24-32: I will take you from among the nations, gather you out of all countries, and bring you into your own land. Then I will sprinkle clean water on you, and you shall be clean; I will cleanse you from all your filthiness and from all your idols. I will give you a new heart and put a new spirit within you; I will take the heart of stone out of your flesh and give you a heart of flesh. I will put My Spirit within you and cause you to walk in My statutes, and you will keep My judgments and do them. Then you shall dwell in the land that I gave to your fathers; you shall be My people, and I will be your God. I will deliver you from all your uncleannesses. I will call for the grain and multiply it, and bring no famine upon you. And I will multiply the fruit of your trees and the increase of your fields, so that you need never again bear the reproach of famine among the nations. Then you will remember your evil ways and your deeds that were not good; and you will loathe yourselves in your own sight, for your iniquities and your abominations. Not for your sake do I do this,” says the Lord God, “let it be known to you. Be ashamed and confounded for your own ways, O house of Israel!”