Numbers 27:12-20 NIV
Then the LORD said to Moses, “Go up this mountain in the Abarim Range and see the land I have given the Israelites. After you have seen it, you too will be gathered to your people, as your brother Aaron was, for when the community rebelled at the waters in the Desert of Zin, both of you disobeyed my command to honor me as holy before their eyes.” (These were the waters of Meribah Kadesh, in the Desert of Zin.)
Moses said to the LORD, “May the LORD, the God who gives breath to all living things, appoint someone over this community to go out and come in before them, one who will lead them out and bring them in, so the LORD’s people will not be like sheep without a shepherd.”
So the LORD said to Moses, “Take Joshua son of Nun, a man in whom is the spirit of leadership, and lay your hand on him. Have him stand before Eleazar the priest and the entire assembly and commission him in their presence. Give him some of your authority so the whole Israelite community will obey him.
NIV: New International Version