Joshua 9 - 10

1 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, 2 that they gathered together to fight with Joshua and Israel with one accord. 3 But when the inhabitants of Gibeon heard what Joshua had done to Jericho and Ai, 4 they worked craftily, and went and pretended to be ambassadors. And they took old sacks on their donkeys, old wineskins torn and mended, 5 old and patched sandals on their feet, and old garments on themselves; and all the bread of their provision was dry and moldy. 6 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.” 7 Then the men of Israel said to the Hivites, “Perhaps you dwell among us; so how can we make a covenant with you?” 8 But they said to Joshua, “We are your servants.” And Joshua said to them, “Who are you, and where do you come from?” …
— JOSHUA 9 - 10