Bamidbar / Numbers 36:6 · Pshat
זֶה הַדָּבָר אֲשֶׁר־צִוָּה יְהוָה לִבְנוֹת צְלָפְחָד לֵאמֹר לַטּוֹב בְּעֵינֵיהֶם תִּהְיֶינָה לְנָשִׁים אַךְ לְמִשְׁפַּחַת מַטֵּה אֲבִיהֶם תִּהְיֶינָה לְנָשִׁים׃
This is the thing which the Eternal commanded concerning the daughters of Tzelofchad, saying: Let them be wives to whom they think best, only within the family of the tribe of their father shall they be wives.
Pshat פְּשָׁט
Freedom and advice
The daughters of Tzelofchad (Zelophehad) inherit their father's land. So that the land does not pass to another tribe, the Eternal says whom they should marry. The commentators debate whether this was a law or only advice.
Rashbam: "to whom they think best" means from their own tribe, by the plain sense. Malbim: the command concerned only the tribe's lot, so they could marry anyone of the tribe of Menasheh (Manasseh), even not of their own family. Netziv: the daughters of Tzelofchad were permitted to transfer the inheritance, and "only within the family of the tribe of their father" is only advice, so that they would not seem more important than the other daughters of their tribe. From this we learn advice in many matters, and the counsel of the Eternal shall stand for every person.
How Rashbam, Malbim, and Haamek Davar explain it
Rashbam Let them be wives to whom they think best
From their tribe, by the plain sense.
Malbim This is the thing which the Eternal commanded concerning the daughters of Tzelofchad
This thing alone He commanded, what concerns the lot of the tribe. Therefore "let them be wives to whom they think best," that is, even not of the family. "Only within the family of the tribe of their father": if he is of the tribe of Menasheh (Manasseh), even not of their family but of another family of the tribe, let them be wives.
Haamek Davar Let them be wives to whom they think best
It was already explained in the portion Pinchas that the daughters of Tzelofchad were permitted to transfer the inheritance, from what is written: "and you shall pass the inheritance of their father to them." And what is written, "only within the family" and so on, is only advice, as brought in the chapter "Some inherit." And above it was explained that because of their importance the Omnipresent permitted them to transfer the inheritance. They are like women who have already borne children to a husband from another tribe: they inherit and transfer the inheritance, as explained nearby. And for so small a matter the holiness established in the land will not be harmed. But the advice was so that they would not seem more important than all the daughters of their tribe. Therefore let them behave like all of them, for those were forbidden to transfer an inheritance in that generation. And from this we learn advice in many matters, and the counsel of the Eternal shall stand for every person.
Takeaway
"The daughters of Tzelofchad speak right: you shall surely give them a possession of an inheritance among their father's brothers and pass the inheritance of their father to them" (Bamidbar / Numbers 27:7).
The words about advice are brought in the Talmud, in the chapter "Some inherit" (Bava Batra 120a).
"Many are the plans in a man's heart, but the counsel of the Eternal shall stand" (Mishlei / Proverbs 19:21).