The Lord appeared to Abram and said, “I'm going to give this land to your descendants.” So Abram built an altar to the Lord there because that was where the Lord appeared to him.
May he grant you and your descendants the same blessing he gave to Abraham, so that you may take over the land where you now live as a foreigner, the land God gave to Abraham.”
“I'm going to die soon,” Joseph told his brothers, “but God will be with you, and he will lead you out of this country to the land that he swore to give to Abraham, Isaac, and Jacob.”
Remember you swore a promise your servants Abraham, Isaac, and Jacob, telling them, ‘I will make your descendants as numerous as the stars of heaven, and give you all the land I promised to them, and they shall own it forever.’”
God's promise to Abraham and his descendants that the world would belong to him was not based on his keeping of the law, but because he was made right through his trust in God.
This was when I gave you these instructions: “The Lord your God has given you this country as yours to own. All your warriors are to cross over, ready for battle, leading your fellow Israelites.
It's not because you're so good or moral that you're going to take over their land. No, it's because of their wickedness that the Lord your God is driving out these nations ahead of you, to keep the promise he made to your fathers—to Abraham, Isaac, and Jacob.