Numbers 23
Then Balaam said to Balak, "Build seven altars for me here, and prepare for me seven bulls and seven rams here."
Balak did just as Balaam had said, and Balak and Balaam offered a bull and a ram on each altar.
Then Balaam said to Balak, "Stand beside your burnt offering and I will go. Perhaps the LORD will come to meet me; and whatever He shows me I will tell you." So he went to a desolate hill.
Now God met Balaam, who said to Him, "I have prepared seven altars, and I have offered a bull and a ram on each altar."
Then the LORD put a speech in Balaam's mouth, and said, "Return to Balak, and you shall speak thus."
Balaam returned to Balak, and behold, he was standing by his burnt sacrifice, he and all the leaders of Moab.
Then Balak said to Balaam, "What have you done to me? I brought you to curse my enemies, but here you have [thoroughly] blessed them instead!"
Balaam answered, "Must I not be obedient and careful to speak what the LORD has put in my mouth?"
Balak said to him, "Come with me, I implore you, to another place from where you can see them, although you will see only the nearest and not all of them; and curse them for me from there."
So he took Balaam to the field of Zophim to the top of [Mount] Pisgah, and built seven altars, and offered a bull and a ram on each altar.
Balaam said to Balak, "Stand here beside your burnt offering while I go to meet the LORD over there."
Then the LORD met Balaam and put a speech in his mouth, and said, "Go back to Balak and you shall speak thus."
When Balaam returned to Balak, he was standing beside his burnt offering, and the leaders of Moab were with him. And Balak said to him, "What has the LORD spoken?"
Then Balak said to Balaam, "Neither curse them at all nor bless them at all!"
But Balaam answered Balak, "Did I not say to you, 'All that the LORD speaks, that I must do?'"
Then Balak said to Balaam, "Please come; I will take you to another place. Perhaps it will please God to let you curse them for me from there."
So Balak brought Balaam to the top of [Mount] Peor, that overlooks the wasteland.
And Balaam said to Balak, "Build seven altars for me here, and prepare for me seven bulls and seven rams here."
Balak did just as Balaam had said, and offered a bull and a ram on each altar.