You shall also say to the Israelites, “If a man dies, and has no son, then you shall pass his inheritance on to his daughter.
The daughters of Zelophehad are right in what they are saying; you shall indeed let them possess an inheritance among their father's brothers and pass the inheritance of their father on to them.
If he has no daughter, then you shall give his inheritance to his brothers.