Deuteronomy 31:7-9

7 And Moses called to Joshua, and said to him in the sight of all Israel, Be strong and of a good courage: for you must go with this people to the land which the LORD has sworn to their fathers to give them; and you shall cause them to inherit it.

8 And the LORD, he it is that does go before you; he will be with you, he will not fail you, neither forsake you: fear not, neither be dismayed.

9 And Moses wrote this law, and delivered it to the priests the sons of Levi, which bore the ark of the covenant of the LORD, and to all the elders of Israel.