Devarim31:7

וַיִּקְרָא מֹשֶׁה לִיהוֹשֻׁעַ וַיֹּאמֶר אֵלָיו לְעֵינֵי כָל־יִשְׂרָאֵל חֲזַק וֶאֱמָץ כִּי אַתָּה תָּבוֹא אֶת־הָעָם הַזֶּה אֶל־הָאָרֶץ אֲשֶׁר נִשְׁבַּע יְהוָה לַאֲבֹתָם לָתֵת לָהֶם וְאַתָּה תַּנְחִילֶנָּה אוֹתָם׃

And Moshe called Yehoshua and said to him before the eyes of all Israel: "Be strong and courageous, for you shall come with this people into the land which the Eternal swore to their fathers to give them, and you shall give it to them as an inheritance.

Devarim 31:7

וַיִּקְרָא מֹשֶׁה לִיהוֹשֻׁעַ

Devarim / Deuteronomy 31:7 · Drash

Devarim 31:7

וַיִּקְרָא מֹשֶׁה לִיהוֹשֻׁעַ וַיֹּאמֶר אֵלָיו לְעֵינֵי כָל־יִשְׂרָאֵל חֲזַק וֶאֱמָץ כִּי אַתָּה תָּבוֹא אֶת־הָעָם הַזֶּה אֶל־הָאָרֶץ אֲשֶׁר נִשְׁבַּע יְהוָה לַאֲבֹתָם לָתֵת לָהֶם וְאַתָּה תַּנְחִילֶנָּה אוֹתָם׃

And Moshe called Yehoshua and said to him before the eyes of all Israel: "Be strong and courageous, for you shall come with this people into the land which the Eternal swore to their fathers to give them, and you shall give it to them as an inheritance.

Drash דְּרָשׁ

One leader and another's children

A departing teacher often worries about two things: who will continue, and will he be gentle with the students. The sages tell what Moshe (Moses) grieved over and what he said to Yehoshua (Joshua) in parting.

Talmud, Rabbi Yochanan: Moshe said "you and the elders", and the Eternal "one leader for a generation". Sifrei, Rabbi Natan: Moshe grieved that none of his sons stood in his place. The Eternal said Yehoshua would stand at Elazar's door. Then Moshe took heart and told Yehoshua: the people are still children, do not be strict with them.

How Ein Yaakov and Sifrei explain it

Ein Yaakov For you shall come

It is written: "for you shall come" (Devarim / Deuteronomy 31:7), and it is written: "for you shall bring" (Devarim / Deuteronomy 31:23). Rabbi Yochanan said: Moshe said to Yehoshua: you and the elders of the generation with them. The Holy One, blessed is He, said to him: take a stick and strike them on the head. One leader for a generation, and not two leaders for a generation.

Sifrei And Moshe called Yehoshua

Rabbi Natan says: Moshe grieved in his heart that none of his sons stood in his place. The Omnipresent said to him: are not the sons of your brother Aharon as your own sons? And even the one I set over Israel will go and stand at the door of Elazar. What is this like? A king who had a son worthy of the kingdom. He took the kingdom from him and gave it into the hands of his friend. He said to him: although I gave you greatness, go and stand at my son's door. So the Holy One, blessed is He, said to Yehoshua: go and stand at the door of My son Elazar, as it is said: "And he shall stand before Elazar the priest" (Bamidbar / Numbers 27:21).

At that hour Moshe's strength grew, and he strengthened Yehoshua before the eyes of all Israel, as it is said: "And Moshe called Yehoshua and said to him before the eyes of all Israel: 'Be strong and courageous.'" Here is the people I hand over to you, they are still kids, they are still infants. Do not be strict with them for what they do, for even their Master was not strict with them for what they did, as it is said: "For Israel is a child, and I loved him" (Hoshea / Hosea 11:1). (Rabbi Nechemyah says: have I no power? Indeed I have: I will bring them into the tents of the shepherds. The master said: so that they expound Torah there.)

Takeaway

The same clash of "come" and "bring" is cited by Rashi on the Pshat level. Here it is in the mouth of Rabbi Yochanan (Sanhedrin 8a).
Elazar is Aharon's son, high priest after his father. Yehoshua, head of the people, will ask the Eternal's answer through him (Bamidbar / Numbers 27:21).
"Kids" (גְּדָיִים) hints at the verse "pasture your kids by the shepherds' tents" (Shir HaShirim / Song of Songs 1:8). That is why Rabbi Nechemyah speaks of the shepherds' tents: there, in the houses of study, the people will be taught. The last line of the midrash is compressed and unclear.