In Joshua 9, we find Joshua making a hasty treaty with the Gibeonites based upon what he assumed to be true about them; that they were from a far off land and of no threat. After the treaty had been made, however, Joshua finds that they are in fact their neigbors.\nIf Joshua had sought the Lord's counsel, he would have found the truth.