Treasury of Scripture
This information brought to Joshua, is an evidence that there were those of the country, who knew the holes and fastnesses of it, that were in his interests. And the care Joshua took to secure them there, as it is an instance of his policy and presence of mind, even in the heat of action; so, in the success of their project, it shows how they who think to hide themselves from God, not only deceive, but destroy themselves. Their refuge of lies will but bind them over to God's judgment.