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