Verse 38: And Joshua returned, and all Israel with him, to (see Josh. 15:15; Judg. 1:11) Debir; and fought against it…
[And thence returning to Debir] As if he had previously besieged it, or had been there. Perhaps, being about to besiege Hebron, he journeyed by it; afterwards he returned to it (Drusius out of Munster). With the southern part left untouched, he directed his course towar Gilgal (Junius). But Debir was to Hebron toward the South and West, as we shall say on Joshua 15:15 (Malvenda). He returned, with the cities of the Philistines left untouched (for he had already rushed out with weapons raised toward Gaza) to Debir (Masius).
And Joshua returned…to Debir: He is said to return thither, not as if he had been there before, but because having gone as far westward and southward as he thought fit, even as far as Gaza, Joshua 10:41, he now returned towards Gilgal, which lay northward and eastward from him, and in his return fell upon Debir: see on Joshua 15:15.
Verse 39: And he took it, and the king thereof, and all the cities thereof; and they smote them with the edge of the sword, and utterly destroyed all the souls that were therein; he left none remaining: as he had done to Hebron, so he did to Debir, and to the king thereof; as he had done also to Libnah, and to her king.
 Hebrew: וַיָּ֧שָׁב יְהוֹשֻׁ֛עַ וְכָל־יִשְׂרָאֵ֥ל עִמּ֖וֹ דְּבִ֑רָה וַיִּלָּ֖חֶם עָלֶֽיהָ׃
 Hebrew: וַֽיִּלְכְּדָ֞הּ וְאֶת־מַלְכָּ֤הּ וְאֶת־כָּל־עָרֶ֙יהָ֙ וַיַּכּ֣וּם לְפִי־חֶ֔רֶב וַֽיַּחֲרִ֙ימוּ֙ אֶת־כָּל־נֶ֣פֶשׁ אֲשֶׁר־בָּ֔הּ לֹ֥א הִשְׁאִ֖יר שָׂרִ֑יד כַּאֲשֶׁ֙ר עָשָׂ֜ה לְחֶבְר֗וֹן כֵּן־עָשָׂ֤ה לִדְבִ֙רָה֙ וּלְמַלְכָּ֔הּ וְכַאֲשֶׁ֥ר עָשָׂ֛ה לְלִבְנָ֖ה וּלְמַלְכָּֽהּ׃