Then the people of Israel traveled to the plains of Moab and camped east of the Jordan River, across from Jericho.
Balak son of Zippor, the Moabite king, knew what the Israelites had done to the Amorites.
And when they saw how many Israelites there were, he and his people were terrified.
The king of Moab said to the leaders of Midian, "This mob will devour everything in sight, like an ox devours grass!" So Balak, king of Moab,
sent messengers to Balaam son of Beor, who was living in his native land of Pethor near the Euphrates River. He sent this message to request that Balaam come to help him: "A vast horde of people has arrived from Egypt. They cover the face of the earth and are threatening me.
References for Numbers 22:5
Please come and curse them for me because they are so numerous. Then perhaps I will be able to conquer them and drive them from the land. I know that blessings fall on the people you bless. I also know that the people you curse are doomed."