וַיֹּ֨אמֶר יְהוָ֜ה אֶל־מֹשֶׁ֗ה הֵ֣ן קָרְב֣וּ יָמֶיךָ֮ לָמוּת֒ קְרָ֣א אֶת־יְהוֹשֻׁ֗עַ וְהִֽתְיַצְּב֛וּ בְּאֹ֥הֶל מוֹעֵ֖ד וַאֲצַוֶּ֑נּוּ וַיֵּ֤לֶךְ מֹשֶׁה֙ וִֽיהוֹשֻׁ֔עַ וַיִּֽתְיַצְּב֖וּ בְּאֹ֥הֶל מוֹעֵֽד׃
And the LORD said unto Moses: ‘Behold, thy days approach that thou must die; call Joshua, and present yourselves in the tent of meeting, that I may give him a charge.’ And Moses and Joshua went, and presented themselves in the tent of meeting.
Targum Jonathan on Deuteronomy
Unto three of the just was it told that the time of their death was drawing nigh, and that they should not attain to the days of their fathers; and each of them had been appointed a prince in his days; Jakob our father, David the king, and Mosheh the prophet; for thus it is written: And the Lord said unto Mosheh, Behold, thy day approacheth when thou must die. Call Jehoshua, and stand both of you in the tabernacle of ordinance, that I may give him charge. And Mosheh and Jehoshua went, and stood in the tabernacle of ordinance.