Numbers 27
2And they stood before Moses, and before Eleazar the priest, and before the princes and all the congregation, at the door of the tent of meeting, saying:
3'Our father died in the wilderness, and he was not among the company of them that gathered themselves together against the LORD in the company of Korah, but he died in his own sin; and he had no sons.
4Why should the name of our father be done away from among his family, because he had no son? Give unto us a possession among the brethren of our father.'
5And Moses brought their cause before the LORD.
6And the LORD spoke unto Moses, saying:
7'The daughters of Zelophehad speak right: thou shalt surely give them a possession of an inheritance among their father's brethren; and thou shalt cause the inheritance of their father to pass unto them.
9And if he have no daughter, then ye shall give his inheritance unto his brethren.
10And if he have no brethren, then ye shall give his inheritance unto his father's brethren.
11And if his father have no brethren, then ye shall give his inheritance unto his kinsman that is next to him of his family, and he shall possess it. And it shall be unto the children of Israel a statute of judgment, as the LORD commanded Moses.'
12And the LORD said unto Moses: 'Get thee up into this mountain of Abarim, and behold the land which I have given unto the children of Israel.
15And Moses spoke unto the LORD, saying:
16'Let the LORD, the God of the spirits of all flesh, set a man over the congregation,
19and set him before Eleazar the priest, and before all the congregation; and give him a charge in their sight.
20And thou shalt put of thy honour upon him, that all the congregation of the children of Israel may hearken.
21And he shall stand before Eleazar the priest, who shall inquire for him by the judgment of the Urim before the LORD; 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.'
22And Moses did as the LORD commanded him; and he took Joshua, and set him before Eleazar the priest, and before all the congregation.
23And he laid his hands upon him, and gave him a charge, as the LORD spoke by the hand of Moses.