Moses
Deuteronomy 31:23ESV·traditional attribution

And the LORD commissioned Joshua the son of Nun and said, “Be strong and courageous, for you shall bring the people of Israel into the land that I swore to give them. I will be with you.”

John Calvin Reformed @genevareformer

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.

Matthew Henry Presbyterian @wholebiblehenry

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

John Gill Reformed Baptist @doctorgill

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.