Then Moses spoke to the LORD, saying, “May the LORD, the God of the spirits of all flesh, appoint a man over the congregation, who will go out and come in before them, and who will lead them out and bring them in, so that the congregation of the LORD will not be like sheep which have no shepherd.” So the LORD said to Moses, “Take Joshua the son of Nun, a man in whom is the Spirit, and lay your hand on him; and have him stand before Eleazar the priest and before all the congregation, and commission him in their sight. You shall put some of your authority on him, in order that all the congregation of the sons of Israel may obey him. Moreover, he shall stand before Eleazar the priest, who shall inquire for him by the judgment of the Urim before the LORD. At his command they shall go out and at his command they shall come in, both he and the sons of Israel with him, even all the congregation.” Moses did just as the LORD commanded him; and he took Joshua and set him before Eleazar the priest and before all the congregation. Then he laid his hands on him and commissioned him, just as the LORD had spoken through Moses.