(23) And he (Jehovah) gave Joshua the son of Nun a charge.--This is the first record of God's direct communion with Joshua. He was with Moses on the mount during the first forty days, and "departed not out of the Tabernacle" when they came down (Exodus 24:13; Exodus 33:11). But we have no note of any Divine communication made to Joshua apart from Moses before this. It ratifies Joshua's appointment as leader of Israel.
Verse 23. - And he gave, etc. The subject here is God, not Moses, as is evident partly from ver. 14, and partly from the expression, the land which I aware unto them; and I will be with thee (cf. Exodus 3:12).
31:23-30 The solemn delivery of the book of the law to the Levites, to be deposited in, or rather by the side, of the ark, is again related. The song which follows in the next chapter is delivered to Moses, and by him to the people. He wrote it first, as the Holy Spirit taught him; and then spake it in the hearing of all the people. Moses tells them plainly, I know that after my death ye will utterly corrupt yourselves. Many a sad thought, no doubt, it occasioned to this good man; but his comfort was, that he had done his duty, and that God would be glorified in their dispersion, if not in their settlement, for the foundation of God stands sure.
And he gave Joshua the son of Nun a charge,.... It may be a question who gave this charge, the Lord or Moses; according to the connection of the words with the preceding, it seems to be the latter; for the immediate antecedent to the relative he is Moses, and so the Septuagint interpreters understand it; but then they are obliged to read some following clauses different from the original, as, instead of "I swear", they read "the Lord sware"; and the last clause they read, "and he shall be with thee"; but Aben Ezra gives the same sense without departing from the common and genuine reading, supposing that Moses gave the charge in the name and by the authority of the Lord; his words are,"he gave charge by the commandment of the Lord, therefore he saith, "which I sware unto them";''but it seems best to understand this of the Lord himself, since he ordered Moses and Joshua to present themselves before him, that he might give the latter a charge, Deuteronomy 31:14; and the language of the following clauses best agrees with him:
Be strong . . .--Comp. Joshua 1:2; Joshua 1:6.
and said, be strong and of a good courage; See Gill on Deuteronomy 31:6; See Gill on Deuteronomy 31:7,
for thou shalt bring the children of Israel into the land which I sware unto them; See Gill on Deuteronomy 31:7;
and I will be with thee; See Gill on Deuteronomy 31:8; the Targum of Jonathan is,"my Word shall be thy help.''