And it came to pass when all the kings who were on this side of the Jordan, in the hills and in the lowland and in all the coasts of the Great Sea toward Lebanon—the Hittite, the Amorite, the Canaanite, the Perizzite, the Hivite, and the Jebusite—heard about it, that they gathered together to fight with Joshua and Israel with one accord.
But when the inhabitants of Gibeon heard what Joshua had done to Jericho and Ai, they worked craftily, and went and pretended to be ambassadors. And they took old sacks on their donkeys, old wineskins torn and mended, old and patched sandals on their feet, and old garments on themselves; and all the bread of their provision was dry and moldy. And they went to Joshua, to the camp at Gilgal, and said to him and to the men of Israel, “We have come from a far country; now therefore, make a covenant with us.”
Then the men of Israel said to the Hivites, “Perhaps you dwell among us; so how can we make a covenant with you?”
But they said to Joshua, “We are your servants.”
And Joshua said to them, “Who are you, and where do you come from?”
So they said to him: “From a very far country your servants have come, because of the name of the LORD your God; for we have heard of His fame, and all that He did in Egypt, and all that He did to the two kings of the Amorites who were beyond the Jordan—to Sihon king of Heshbon, and Og king of Bashan, who was at Ashtaroth. Therefore our elders and all the inhabitants of our country spoke to us, saying, ‘Take provisions with you for the journey, and go to meet them, and say to them, “We are your servants; now therefore, make a covenant with us.” ’ This bread of ours we took hot for our provision from our houses on the day we departed to come to you. But now look, it is dry and moldy. And these wineskins which we filled were new, and see, they are torn; and these our garments and our sandals have become old because of the very long journey.”
Then the men of Israel took some of their provisions; but they did not ask counsel of the LORD. So Joshua made peace with them, and made a covenant with them to let them live; and the rulers of the congregation swore to them.
And it happened at the end of three days, after they had made a covenant with them, that they heard that they were their neighbors who dwelt near them. Then the children of Israel journeyed and came to their cities on the third day. Now their cities were Gibeon, Chephirah, Beeroth, and Kirjath Jearim. But the children of Israel did not attack them, because the rulers of the congregation had sworn to them by the LORD God of Israel. And all the congregation complained against the rulers.