Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
LXX

Joshua 10:39

and they took it, and its king, and its villages: and he smote it with the edge of the sword, and they destroyed it, and every thing breathing in it; and they did not leave in it any one that was preserved: as they did to Chebron and her king, so they did to Dabir and her king.

Read in other translations