Now when all the kings who were beyond the Jordan, in the hill country and in the lowland [at the western edge of the hills of Judea], and all along the coast of the Great [Mediterranean] Sea toward Lebanon, the Hittite and the Amorite, the Canaanite, the Perizzite, the Hivite and the Jebusite, heard of this [army and its victories over Jericho and Ai], they gathered together with one purpose to fight with Joshua and with Israel.
But when the people of Gibeon [the Hivites] heard what Joshua had done to Jericho and Ai, they too acted craftily and cunningly, and set out and took along provisions, but took worn-out sacks on their donkeys, and wineskins (leather bottles) that were worn out and split open and patched together, and worn-out and patched sandals on their feet, and worn-out clothes; and all their supply of food was dry and had turned to crumbs. They went to Joshua in the camp at Gilgal and said to him and the men of Israel, “We have come from a far country; so now, make a covenant (treaty) with us.” But the men of Israel said to the Hivites, “Perhaps you are living within our land; how then can we make a covenant (treaty) with you?” They said to Joshua, “We are your servants.” Then Joshua said to them, “Who are you, and where do you come from?” They said to him, “Your servants have come from a country that is very far away because of the fame of the LORD your God; for we have heard the news about Him and all [the remarkable things] that He did in Egypt, and everything that He did to the two kings of the Amorites who were beyond the Jordan, to Sihon the king of Heshbon and to Og the king of Bashan who lived in Ashtaroth. So our elders and all the residents of our country said to us, ‘Take provisions for the journey and go to meet the sons of Israel and say to them, “We are your servants; now make a covenant (treaty) with us.” ’ This bread of ours was hot (fresh) when we took it along as our provision from our houses on the day we left to come to you; now look, it is dry and has turned to crumbs. These wineskins which we filled were new, and look, they are split; our clothes and our sandals are worn out because of the very long journey [that we had to make].” So the men [of Israel] took some of their own provisions [and offered them in friendship], and [foolishly] did not ask for the counsel of the LORD. Joshua made peace with them and made a covenant (treaty) with them, to let them live; and the leaders of the congregation [of Israel] swore an oath to them.
It happened that three days after they had made a covenant (treaty) with them, the Israelites heard that they were [actually] their neighbors and that they were living among them. Then the sons of Israel set out and came to their cities on the third day. Now the cities [of the Hivites] were Gibeon and Chephirah and Beeroth and Kiriath-jearim. But the sons of Israel did not strike them because the leaders of the congregation had sworn to them by the LORD the God of Israel [to spare them]. And all the congregation murmured [expressing great dissatisfaction] against the leaders.