Deuteronomy 7:2

7:2 and he delivers them over to you and you attack them, you must utterly annihilate them. Make no treaty with them and show them no mercy!

Deuteronomy 31:7

31:7 Then Moses called out to Joshua in the presence of all Israel, “Be strong and courageous, for you will accompany these people to the land that the Lord promised to give their ancestors, and you will enable them to inherit it.