Gibeonites Deceive, vs. 3-15
Later on it appears that Gibeon was one of the cities of the Hivites, a strong contingent of the league formed to oppose Joshua and Israel. So the united front was not unanimous against the Israelites. To "work wilily" is to engage in guile and trickery to gain an intended end which could not be otherwise gotten.
They did this by choosing shrewd messengers, who took stale and moldy bread, patched wine bottles, ragged clothes and shoes, and agreed on a cunning tale to deceive the Israelites. Thus they appeared in Israel’s camp at Gilgal, requesting that Israel make a league of peace with them.
The Israelites must have suspected them for they suggested that if they were of Canaan they could not make peace with them. When they insisted that they were servants of Israel, seeking peace, Joshua even went so far as to inquire of their citizenship and country.
The deceivers gave an evasive answer, seemingly calculated to suggest that their land was so far away that Joshua and the elders of Israel had never heard of it, so there was no need to state the name of their country.
Joshua and the elders almost appear naive in the exchange, in not insisting on the name of the strangers’ country. The Gibeonite deceivers stressed their previous story with a tale how the bread was fresh, the wine bags and clothing new when they started on their journey to meet the Israelites, but a long, hard journey had rendered them old. They very shrewdly insisted that their sole reason for coming was out of respect for the great God, whose deeds in Egypt and across the Jordan they had heard. They were very careful not to mention the dry ground crossing of Jordan, the fall of Jericho’s walls, and the destruction of Ai, for these events were so recent that they should not have heard of them had they come from so far away place as they contended.
It is most astounding that Joshua fell into another serious mistake so quickly following his humiliation regarding Ai. In their overconfidence he and the elders made their inspection of the Gibeonite evidence and reached agreement concerning the requested league without consulting the Lord, (cf; Philippians 3:3). Thus the Gibeonites received the oath of Israel not to harm them.