Numbers 27:21-23
He is to stand before Eleazar the priest, who
will obtain decisions for him by inquiring of the Urim before the LORD.
At his command he and the entire community of the Israelites will go
out, and at his command they will come in."
Moses did as the LORD commanded him. He took Joshua and had him stand before Eleazar the priest and the whole assembly.
Then he laid his hands on him and commissioned him, as the LORD instructed through Moses.