Bamidbar24:5

מַה־טֹּבוּ אֹהָלֶיךָ יַעֲקֹב מִשְׁכְּנֹתֶיךָ יִשְׂרָאֵל׃

How good are your tents, Yaakov, your dwellings, Israel!

Bamidbar 24:5

מַה־טֹּבוּ אֹהָלֶיךָ יַעֲקֹב

Bamidbar / Numbers 24:5 · Pshat

Bamidbar 24:5

מַה־טֹּבוּ אֹהָלֶיךָ יַעֲקֹב מִשְׁכְּנֹתֶיךָ יִשְׂרָאֵל׃

How good are your tents, Yaakov, your dwellings, Israel!

Pshat פְּשָׁט

Doors apart

A good home is seen not by its walls but by how neighbours live. Bilam looks at the camp from above and notices what people usually overlook: where the doors face.

Rashi: Bilam (Balaam) saw that the openings of the tents did not face one another: no one looks into a neighbour's home. Another explanation: the tents are Shiloh and the Temple, and "dwellings" (מִשְׁכָּן) is "pledge" (מַשְׁכּוֹן): even the destruction of the Temple atones for the people. Malbim: a tent is the temporary home of the desert, a dwelling the permanent home in the Land of Israel, and there the people will rise to the name Israel.

How Rashi and Malbim explain it

Rashi How good are your tents

Because he saw that their openings did not face one another.

Rashi Your dwellings

Your encampments, as the Targum renders it. Another explanation: "how good are your tents": how good are the tent at Shiloh and the eternal Temple while they stand, for in them offerings are brought to atone for you.

Rashi Your dwellings

Even when they are destroyed, for they are a pledge (מַשְׁכּוֹן) for you, and their destruction is atonement for souls, as it says: "The Eternal has spent His fury" (Eichah / Lamentations 4:11). With what did He spend it? "And He kindled a fire in Tziyon (Zion)."

Malbim How good are your tents, Yaakov

A tent is a temporary home, and a dwelling a permanent one. In the desert they lived in tents, but they were already ready to enter the land and live in permanent dwellings, and Bilam (Balaam) saw all this. Of the tents in the desert he said: "how good are your tents, Yaakov (Jacob)", and of their readiness to live in permanent dwellings in the Land of Israel he said: "your dwellings, Israel". And the name Israel is higher than the name Yaakov: when they enter the land they will be on a higher level and will be called by the name Israel.

Takeaway

The Talmud learns from this verse that one may not make one's door opposite a neighbour's door, so as not to look into another's home (Bava Batra 60a).
Shiloh is the town where the Mishkan, the portable Temple, stood for many years before the Temple in Jerusalem was built.
"Dwelling" (מִשְׁכָּן) and "pledge" (מַשְׁכּוֹן) share a root. Rashi reads "your dwellings" as "your pledges": the Eternal takes the Temple as a pledge instead of the people.
"The Eternal has spent His fury, He has poured out His fierce anger, and He has kindled a fire in Tziyon (Zion), which has devoured its foundations" (Eichah / Lamentations 4:11).