Balak puts Balaam to work almost immediately upon arriving. The diviner has Balak build seven altars, on each of which he offers a bull and a ram (Numbers 23:1). The bull and ram are the prime animals to offer because of their value, and the number seven has a long history of being especially propitious. By these offerings, Balaam is trying to ensure his ability to bribe a curse out of God.
God, of course, will not be bribed (Deuteronomy 10:17), so He puts a blessing on Israel in Balaam's mouth (Numbers 23:9-10).
Balaam was indeed standing in a high place of Baal at the time (Numbers 22:41), and evidently, from this height he could see the whole camp. What he saw was an immense mass of people that he could not begin to count, a fulfillment of God's promise to Abraham in Genesis 13:16: "And I will make your descendants as the dust of the earth; so that if a man could number the dust of the earth, then your descendants also could be numbered" (see also Genesis 15:5). Balaam's oracle suggests that this growth would continue, something Balak did not want to hear (Numbers 23:11).
In saying that Israel was "a people dwelling alone," Balaam notes its separation by covenant from the rest of the world and to God. This recalls God's covenant with Abraham in Genesis 15, in which He prophesies Abraham's offspring returning to Canaan as a people (verses 13-16), and certainly, it alludes to the covenant of circumcision in Genesis 17. This separation by covenant is ratified anew at Mount Sinai: "Now therefore, if you will indeed obey My voice and keep My covenant, then you shall be a special treasure to Me above all people; for all the earth is Mine. And you shall be to Me a kingdom of priests and a holy nation" (Exodus 19:5-6; see Deuteronomy 7:6-11).
The soothsayer's final words are a wish that he, a Gentile having no part in the covenant, could be included under it. The "righteous" are those who keep the terms of the covenant, which is obedience to God. His words of blessing may allude to Genesis 12:3, where God promises Abraham, "I will bless those who bless you." If he cannot join them, Balaam at least desires the blessings that come from blessing them!
Richard T. Ritenbaugh
The Prophecies of Balaam (Part One)