Then Joshua summoned the Gibeonites and said, “Why did you deceive us by telling us you live far away from us, when in fact you live among us?
22. And Joshua called for them, etc. As he was to deliver a sad and severe sentence, he premises that the resolution involves no injustice, because nothing would be more unbecoming than to allow tricks and wiles to be profitable to those who employ them. He therefore first expostulates with them for having warded off danger by falsehood, and then immediately pronounces them cursed.
The matter is here settled between Joshua and the Gibeonites, and an explanation of the league agreed upon. We may suppose that now, not the messengers who were first sent, but the elders of Gibeon, and of the cities that were dependent upon it, were themselves present and treated with, that the matter might be fully compromised. I. Joshua reproves them for their fraud, Jos 9:22.
Commenting on Joshua 9:22-27
And Joshua called for them,.... The Gibeonites, who came as ambassadors for their people, who were detained at Gilgal until the children of Israel returned from Gibeon; and upon their return, and having made their report to Joshua that they found it to be true that they were near neighbours, Joshua ordered them to be brought before him: and he spake unto them, saying, wherefore have ye beguiled us?