The LORD said to Moses, "Go up this mountain, Abarim, and look at the land that I've given to the Israelites.
You will see it and then join your ancestors just as Aaron your brother has,
because in the Zin desert, when the community confronted you, you rebelled against my command to show them my holiness by means of the water." (These are the waters of Meribah of Kadesh in the Zin desert.)
Moses spoke to the LORD:
"Let the LORD, the God of all living things, appoint someone over the community
who will go out before them and return before them, someone who will lead them out and bring them back, so that the LORD's community won't be like sheep without their shepherd."
The LORD said to Moses, "Take Joshua, Nun's son, a man who has the spirit, and lay your hand on him.
Place him before Eleazar the priest and the entire community and commission him before them.
You will give him some of your power so that the entire Israelite community may obey.
He will stand before Eleazar the priest, who will determine for him the decision by lot before the LORD. At his command, he and all the Israelites with him, the entire community, will go out, and at his command they will return."
Moses did as the LORD commanded him. He took Joshua and placed him before Eleazar the priest and the entire community.
He laid his hands on him and commissioned him as the LORD had spoken through Moses.