Bamidbar / Numbers 23:9 · Pshat
כִּי־מֵרֹאשׁ צֻרִים אֶרְאֶנּוּ וּמִגְּבָעוֹת אֲשׁוּרֶנּוּ הֶן־עָם לְבָדָד יִשְׁכֹּן וּבַגּוֹיִם לֹא יִתְחַשָּׁב׃
For from the top of the rocks I see him, and from the hills I behold him: behold, it is a people that dwells alone, and is not reckoned among the nations.
Pshat פְּשָׁט
A people that dwells alone
From above you see what cannot be made out up close. Bilam stands on a rock, looks at the camp below and suddenly understands why this people cannot be cursed.
Rashi: the "rocks" and "hills" are the fathers and mothers on whom the people stands firm, as on stone. The people will not vanish together with the others, and its joy belongs to it alone. Ramban: Bilam (Balaam) sees not a gathering of tribes but one people with one Torah, which dwells alone under the names Yaakov (Jacob) and Israel, and will always dwell so.
How Rashi and Ramban explain it
Rashi For from the top of the rocks I see him
I look at their beginning, at the source of their roots, and I see them founded and strong like these rocks and hills, through the fathers and the mothers.
Rashi And is not reckoned among the nations
As the Targum renders it: they will not be destroyed together with the other nations, as it says: "For I will make a full end of all the nations where I have scattered you, but of you I will not make a full end" (Yirmeyahu / Jeremiah 30:11). They are not counted with the rest. Another explanation: when they rejoice, no nation rejoices with them, as it says: "The Eternal alone leads him" (Devarim / Deuteronomy 32:12). And when the nations prosper, they eat with each of them, and it is not counted against them. That is: "and is not reckoned among the nations".
Ramban For from the top of the rocks I see him
The meaning is this. Balak brought him up to Bamot Baal to see the people, and he said: from the top of the rocks and from the hills I look and see him. He dwells by himself, and there is no other nation with him that would be reckoned together with him, as happens when many peoples and different nations gather into one camp. But these all have one Torah and one law, they are one nation, and he dwells alone under the names Yaakov (Jacob) and Israel. That is why he mentioned "curse Yaakov for me" and "denounce Israel": he recalled their honoured name and the names of their fathers, to say that they are a people apart and their name comes to them rightly from their fathers. For Balak did not name Israel to him, but said only: "a people has come out of Egypt" (Bamidbar / Numbers 22:5), as if he did not recognise them, because he was ungrateful to their father. And the meaning is: just as I see him now dwelling alone, so he will dwell for ever in safety, alone, "the fountain of Yaakov", and he will be at the head for ever, and no nation will prevail over him, nor will he attach himself to them.
Takeaway
The Targum is the Aramaic translation of the Torah made by Onkelos. Here it renders: "and among the nations they will not be sentenced to destruction".
From the height of Bamot Baal, Bilam (Balaam) saw the edge of the people (Bamidbar / Numbers 22:41).
Moav descends from Lot, Avraham's nephew (Bereshit / Genesis 19:37), and Avraham once rescued Lot from captivity (Bereshit / Genesis 14:16).
"And Israel dwells in safety, alone, the fountain of Yaakov (Jacob)": from the blessing of Moshe (Moses) before his death (Devarim / Deuteronomy 33:28).