Numbers 22:3-6

3And aMoab was in great dread of the people, because they were many. Moab was overcome with fear of the people of Israel. 4And Moab said to bthe elders of Midian, “This horde will now lick up all that is around us, as the ox licks up the grass of the field.” So Balak the son of Zippor, who was king of Moab at that time, 5 csent messengers to Balaam the son of Beor dat Pethor, which is near the River in the land of the people of Amaw,
Or  the people of his kindred
to call him, saying, “Behold, a people has come out of Egypt. They cover the face of the earth, and they are dwelling opposite me.
6 fCome now, curse this people for me, since they are too mighty for me. Perhaps I shall be able to defeat them and drive them from the land, for I know that he whom you bless is blessed, and he whom you curse is cursed.”

Joshua 24:9-10

9 gThen Balak the son of Zippor, king of Moab, arose and fought against Israel. hAnd he sent and invited Balaam the son of Beor to curse you, 10 ibut I would not listen to Balaam. jIndeed, he blessed you. So I delivered you out of his hand.
Copyright information for ESV