O my people, remember now what Balak king of Moab devised, and what Balaam the son of Beor answered him, from Shittim unto Gilgal; that you may know the righteousness of the LORD.
Then Israel sent messengers unto the king of Edom, saying, Let me, I pray you, pass through your land: but the king of Edom would not listen. And in like manner they sent unto the king of Moab: but he would not consent: and Israel abode in Kadesh.