Bamidbar / Numbers 36:6
זֶה הַדָּבָר אֲשֶׁר־צִוָּה יְהוָה לִבְנוֹת צְלָפְחָד לֵאמֹר לַטּוֹב בְּעֵינֵיהֶם תִּהְיֶינָה לְנָשִׁים אַךְ לְמִשְׁפַּחַת מַטֵּה אֲבִיהֶם תִּהְיֶינָה לְנָשִׁים׃
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
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
Remez רֶמֶז
Twelve below and twelve above
Kitzur Ba'al HaTurim: the words "an inheritance shall pass" (תִסֹּב נַחֲלָה) equal in number the words "this is in passing to the son" (זוֹ הִיא בַּהֲסִבַּת הַבֵּן): a son inherits his father. Rabbeinu Bahya: this is a commandment for the time before Israel received the land. The twelve tribes below match the twelve tribes above, each one by itself. If a tribe sold its portion to another, the forces would be mixed. But in the land of Israel itself, which includes all forces, this was not so strict.
How Kitzur Ba'al HaTurim and Rabbeinu Bahya explain it
Drash דְּרָשׁ
The fifteenth of Av
Talmud (Taanit): Israel had no good days like the fifteenth of Av and Yom Kippur. The fifteenth of Av is the day the tribes were permitted to marry into one another: "this is the thing which the Eternal commanded concerning the daughters of Tzelofchad (Zelophehad)" applied only to that generation. Also on that day the tribe of Binyamin (Benjamin) was permitted to enter the congregation, and the dying of the wilderness generation came to an end. Midrash Aggadah: the Eternal gave the daughters advice: if they want to marry worthy men of their father's tribe, let them not marry others.
How Ein Yaakov and Midrash Aggadah explain it
Sod סוֹד
A word for one hour
Pri Tzadik: of the daughters of Tzelofchad it is said that their eyes saw what Moshe did not see, and the Holy One, blessed is He, agreed with them. Of the children of Yosef this is not said. For in truth there should be love and unity between the tribes, so the day they were permitted to marry into one another became a festival. The request of the children of Yosef was needed for its time, and what is for its time is the power of the sages and the Oral Torah. Moshe (Moses) is the root of the Written Torah, which does not change, so this stands at the end of the Written Torah, at the threshold of the book of Devarim, where Moshe speaks on his own.
How Pri Tzadik explain it