Then the Lord said to Moses, "Go up this mountain of the Abarim [range] and see the land that I have given the Israelites.
After you have seen it, you will also be gathered to your people, as Aaron your brother was.
When the community quarreled in the Wilderness of Zin, both of you rebelled against My command to show My holiness in their sight at the waters." Those were the waters of Meribah of Kadesh in the Wilderness of Zin.
So Moses appealed to the Lord,
"May the Lord, the God of the spirits of all flesh, appoint a man over the community
who will go out before them and come back in before them, and who will bring them out and bring them in, so that the Lord's community won't be like sheep without a shepherd."
The Lord replied to Moses, "Take Joshua son of Nun, a man who has the Spirit in him, and lay your hands on him.
Have him stand before Eleazar the priest and the whole community, and commission him in their sight.
Confer some of your authority on him so that the entire Israelite community will obey [him].
He will stand before Eleazar who will consult the Lord for him with the decision of the Urim. He and all the Israelites with him, even the entire community, will go out and come back in at his command."
Moses did as the Lord commanded him. He took Joshua, had him stand before Eleazar the priest and the entire community,
laid his hands on him, and commissioned him, as the Lord had spoken through Moses.