Then Balak said to Balaam, “Please come, I will take you to another place; perhaps it will please God that you may curse them for me from there.” So Balak took Balaam to the top of Peor, that overlooks the wasteland. Then Balaam said to Balak, “Build for me here seven altars, and prepare for me here seven bulls and seven rams.” And Balak did as Balaam had said, and offered a bull and a ram on every altar.
Now when Balaam saw that it pleased the Lord to bless Israel, he did not go as at other times, to seek to use sorcery, but he set his face toward the wilderness. And Balaam raised his eyes, and saw Israel encamped according to their tribes; and the Spirit of God came upon him.
Then he took up his oracle and said:
“The utterance of Balaam the son of Beor,
The utterance of the man whose eyes are opened,
The utterance of him who hears the words of God,
Who sees the vision of the Almighty,
Who falls down, with eyes wide open:
“How lovely are your tents, O Jacob!
Your dwellings, O Israel!
Like valleys that stretch out,
Like gardens by the riverside,
Like aloes planted by the Lord,
Like cedars beside the waters.
He shall pour water from his buckets,
And his seed shall be in many waters.
“His king shall be higher than Agag,
And his kingdom shall be exalted.
“God brings him out of Egypt;
He has strength like a wild ox;
He shall consume the nations, his enemies;
He shall break their bones
And pierce them with his arrows.
‘He bows down, he lies down as a lion;
And as a lion, who shall rouse him?’
“Blessed is he who blesses you,
And cursed is he who curses you.”
Then Balak’s anger was aroused against Balaam, and he struck his hands together; and Balak said to Balaam, “I called you to curse my enemies, and look, you have bountifully blessed them these three times! Now therefore, flee to your place. I said I would greatly honor you, but in fact, the Lord has kept you back from honor.”
So Balaam said to Balak, “Did I not also speak to your messengers whom you sent to me, saying, ‘If Balak were to give me his house full of silver and gold, I could not go beyond the word of the Lord, to do good or bad of my own will. What the Lord says, that I must speak’? (Numbers 23:27–24:13).