Numbers 27:18-23

18 Yahweh said to Moses, Take Joshua the son of Nun, a man in whom is the Spirit, and lay your hand on him;  19 and set him before Eleazar the priest, and before all the congregation; and give him a charge in their sight.  20 You shall put of your honor on him, that all the congregation of the children of Israel may obey.  21 He shall stand before Eleazar the priest, who shall inquire for him by the judgment of the Urim before Yahweh: at his word shall they go out, and at his word they shall come in, both he, and all the children of Israel with him, even all the congregation.  22 Moses did as Yahweh commanded him; and he took Joshua, and set him before Eleazar the priest, and before all the congregation:  23 and he laid his hands on him, and gave him a charge, as Yahweh spoke by Moses.

Deuteronomy 34:9

9 Joshua the son of Nun was full of the spirit of wisdom; for Moses had laid his hands on him: and the children of Israel listened to him, and did as Yahweh commanded Moses.