And the Lord said to Moses, "The plea of Zelophehad's daughters is just: you should give them a hereditary holding among their father's kinsmen; transfer their father's share to them.
"Further, speak to the Israelite people as follows: 'If a man dies without leaving a son, you shall transfer his property to his daughter. If he has no daughter, you shall assign his property to his brothers. If he has no brothers, you shall assign his property to his father's brothers. If his father had no brothers, you shall assign his property to his nearest relative in his own clan, and he shall inherit it.' This shall be the law of procedure for the Israelites, in accordance with the Lord's command to Moses."
The Lord said to Moses, "Ascend these heights of Abarim and view the land that I have given to the Israelite people. When you have seen it, you too shall be gathered to your kin, just as your brother Aaron was. For, in the wilderness of Zin, when the community was contentious, you disobeyed My command to uphold My sanctity in their sight by means of the water." Those are the Waters of Meribath-kadesh, in the wilderness of Zin.
Moses spoke to the Lord, saying, "Let the Lord, Source of the breath of all flesh, appoint someone over the community who shall go out before them and come in before them, and who shall take them out and bring them in, so that the Lord's community may not be like sheep that have no shepherd." And the Lord answered Moses, "Single out Joshua son of Nun, an inspired man, and lay your hand upon him. Have him stand before Eleazar the priest and before the whole community, and commission him in their sight. Invest him with some of your authority, so that the whole Israelite community may obey. But he shall present himself to Eleazar the priest, who shall on his behalf seek the decision of the Urim before the Lord. By such instruction they shall go out and by such instruction they shall come in, he and all the Israelites, the whole community."
Moses did as the Lord commanded him. He took Joshua and had him stand before Eleazar the priest and before the whole community. He laid his hands upon him and commissioned him--as the Lord had spoken through Moses.