Numbers 36:3-6
English Standard Version
Chapter 36
3But if they are married to any of the sons of the other tribes of the people of Israel, then their inheritance will be taken from the inheritance of our fathers and added to the inheritance of the tribe into which they marry. So it will be taken away from the lot of our inheritance. 4And when the jubilee of the people of Israel comes, then their inheritance will be added to the inheritance of the tribe into which they marry, and their inheritance will be taken from the inheritance of the tribe of our fathers."
5And Moses commanded the people of Israel according to the word of the Lord, saying, "The tribe of the people of Joseph is right.
6This is what the Lord commands concerning the daughters of Zelophehad: ‘Let them marry whom they think best, only they shall marry within the clan of the tribe of their father.