And when the inhabitants of Gibeon heard what Joshua had done unto Jericho and to Ai,
The inhabitants of Gibeon had heard what had been done at Jericho and to Ai, even the wonders God had wrought for Israel there. News of what God had done through Israel and what Joshua had done had reached them. They knew it was impossible to successfully resist the Hebrews. To preserve their lives they resorted to stratagem, sending ambassadors who pretended to have come from a distant country beyond Palestine to ask for peace and a league with Israel. This hearing begins the account of the treaty with Israel, which proved to be an unwise agreement because counsel of God was neglected and not asked. That hearing led onward to a further outcome, for the Gibeonites renounced their heathenism, joined Israel, and shared in the blessings of the covenant.
The verse stands in the conquest narrative after Jericho had fallen and Israel had been defeated at Ai for failing to trust God, when Jericho's walls were brought down by God's invisible army and Israel's unfaithfulness delayed possession of the land. What the inhabitants heard was the news of what God had done through Israel at Jericho and Ai reaching Gibeon. In response the Gibeonites used craft to secure protection through a covenant alliance and league with Joshua, deceiving Israel about living far away by displaying mouldy bread and worn clothing as signs of age and long travel. Israel entered that unwise agreement because it neglected to ask counsel of God and trusted outward appearances instead of seeking Him. The league was sealed by an oath made in God's name, illustrating how serious such an oath is, and it bound Israel so that Israel could not drive out all the heathen as God had designed. As a result the Gibeonites were assigned to be hewers of wood and drawers and carriers of water, which was public service and not chattel slavery, for no Israelite owned one of them or had personal interest in one, and they remained personally free, possessing their own lands, city, houses, wives and husbands and children. The passage through verse 27 fulfills the curse pronounced upon Canaan as political subjection and servitude, fulfilled in the overthrow of the Canaanites by the Israelites, the Shemites coming out of Egypt, and it was not American chattel slavery nor anything like it and cannot justify it, as proved because the Gibeonites still existed and flourished in the days of David in possession of political rights, with power to make their own treaty with the king of Israel. The mistake brought a foreign element into the community that remained a handicap for centuries, so the whole nation suffered consequences extending to later generations, yet despite the mistake and its consequences Joshua remained Israel's leader. On the weight of the testimony, the Gib