Then the LORD commissioned Joshua son of Nun and said, “Be strong and courageous, for you will bring the Israelites into the land that I swore to give them, and I will be with you.”
23. And he gave Joshua the son of Nul, a charge. The more difficult was the task of Joshua, the more needful was it that he should be encouraged to exert himself, and to beware of failure. For this reason his charge is repeated, although in his person all the others were at the same time confirmed.
Here, I. The charge is given to Joshua, which God has said (v. 14) he would give him. The same in effect that Moses had given him. The same in effect that Moses had given him (v. 7): Be strong and of a good courage, v. 23.
Commenting on Deuteronomy 31:22-30
And it came to pass, when Moses had made an end of writing the words of this law in a book,.... In this book of Deuteronomy, and which concluded the Pentateuch: until they were finished; all the words of the law, and the whole five books of Moses, excepting some few verses, Deu 34:1, which were added by another hand, Joshua or Ezra.