1 Now it came about when all the kings who were beyond the Jordan, in the hill country and in the lowland and on all the coast of the Great Sea toward Lebanon, the Hittite and the Amorite, the Canaanite, the Perizzite, the Hivite and the Jebusite, heard of it, 2 that they gathered themselves together with one accord to fight with Joshua and with Israel.
3 When the inhabitants of Gibeon heard what Joshua had done to Jericho and to Ai, 4 they also acted craftily and set out as envoys, and took worn-out sacks on their donkeys, and wineskins worn-out and torn and mended, 5 and worn-out and patched sandals on their feet, and worn-out clothes on themselves; and all the bread of their provision was dry and had become crumbled. 6 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." 7 The men of Israel said to the Hivites, "Perhaps you are living within our land; how then shall we make a covenant with you?" 8 But they said to Joshua, "We are your servants." Then Joshua said to them, "Who are you and where do you come from?" 9 They said to him, "Your servants have come from a very far country because of the fame of the LORD your God; for we have heard the report of Him and all that He did in Egypt, 10 and all that He did to the two kings of the Amorites who were beyond the Jordan, to Sihon king of Heshbon and to Og king of Bashan who was at Ashtaroth. 11 "So our elders and all the inhabitants of our country spoke to us, saying, 'Take provisions in your hand for the journey, and go to meet them and say to them, "We are your servants; now then, make a covenant with us."' 12 "This our bread was warm when we took it for our provisions out of our houses on the day that we left to come to you; but now behold, it is dry and has become crumbled. 13 "These wineskins which we filled were new, and behold, they are torn; and these our clothes and our sandals are worn out because of the very long journey." 14 So the men of Israel took some of their provisions, and did not ask for the counsel of the LORD. 15 Joshua made peace with them and made a covenant with them, to let them live; and the leaders of the congregation swore an oath to them.
16 It came about at the end of three days after they had made a covenant with them, that they heard that they were neighbors and that they were living within their land. 17 Then the sons of Israel set out and came to their cities on the third day. Now their cities were Gibeon and Chephirah and Beeroth and Kiriath-jearim. 18 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. And the whole congregation grumbled against the leaders. 19 But all the leaders said to the whole congregation, "We have sworn to them by the LORD, the God of Israel, and now we cannot touch them. 20 "This we will do to them, even let them live, so that wrath will not be upon us for the oath which we swore to them." 21 The leaders said to them, "Let them live." So they became hewers of wood and drawers of water for the whole congregation, just as the leaders had spoken to them.
22 Then Joshua called for them and spoke to them, saying, "Why have you deceived us, saying, 'We are very far from you,' when you are living within our land? 23 "Now therefore, you are cursed, and you shall never cease being slaves, both hewers of wood and drawers of water for the house of my God." 24 So they answered Joshua and said, "Because it was certainly told your servants that the LORD your God had commanded His servant Moses to give you all the land, and to destroy all the inhabitants of the land before you; therefore we feared greatly for our lives because of you, and have done this thing. 25 "Now behold, we are in your hands; do as it seems good and right in your sight to do to us." 26 Thus he did to them, and delivered them from the hands of the sons of Israel, and they did not kill them. 27 But Joshua made them that day hewers of wood and drawers of water for the congregation and for the altar of the LORD, to this day, in the place which He would choose.