Numbers 27:19-23

27:19 set him before Eleazar the priest and before the whole community, and commission him publicly. 27:20 Then you must delegate some of your authority to him, so that the whole community of the Israelites will be obedient. 27:21 And he will stand before Eleazar the priest, who will seek counsel for him before the Lord by the decision of the Urim. At his command they will go out, and at his command they will come in, he and all the Israelites with him, the whole community.”

27:22 So Moses did as the Lord commanded him; he took Joshua and set him before Eleazar the priest and before the whole community. 27:23 He laid his hands on him and commissioned him, just as the Lord commanded, by the authority of Moses.