12The LORD said to Moses, Go up this mountain of the Abarim and see the land that I have given to the sons of Israel.13You shall see it, and you also shall be gathered to your people, just as your brother Aaron was gathered.14Just as you rebelled at my command in the wilderness of Zin during the congregation's strife, when you failed to consecrate me before their eyes at the waters; these are the waters of Meribah at Kadesh in the wilderness of Zin.15Moses spoke to the LORD, saying,16May the LORD, the God of the spirits of all flesh, appoint a man over the congregation,17who will go out before them and who will come in before them, who will lead them out and who will bring them in, so that the congregation of the LORD will not be like a flock that has no shepherd.18The LORD said to Moses, Take Joshua son of Nun, a man who has the spirit in him, and lay your hand on him.19Have him stand before Eleazar the priest and before the whole congregation, and commission him in their sight.20Bestow some of your splendor on him so that the whole congregation of the sons of Israel may obey.21He shall stand before Eleazar the priest and inquire for him by the judgment of the Urim before the LORD; according to his word they shall go out and according to his word they shall come in, both he and all the sons of Israel with him, and the whole congregation.22Moses did just as the LORD had commanded him: he took Joshua, had him stand before Eleazar the priest and before the whole congregation,23laid his hands on him, and commissioned him just as the LORD had spoken through Moses.