Deuteronomy 31:7-8

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. 31:8 The Lord is indeed going before you – he will be with you; he will not fail you or abandon you. Do not be afraid or discouraged!”

Deuteronomy 31:23

31:23 and the Lord commissioned Joshua son of Nun, “Be strong and courageous, for you will take the Israelites to the land I have promised them, and I will be with you.”