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!”