Deuteronomy 20:15

13 And when the LORD thy God hath delivered it into thine hands, thou shalt smite every male thereof with the edge of the sword:

14 But the women, and the little ones, and the cattle, and all that is in the city, even all the spoil thereof, shalt thou take unto thyself; and thou shalt eat the spoil of thine enemies, which the LORD thy God hath given thee.

Thus shalt thou do unto all the cities which are very far off from thee, which are not of the cities of these nations.

16 But of the cities of these people, which the LORD thy God doth give thee for an inheritance, thou shalt save alive nothing that breatheth:

17 But thou shalt utterly destroy them; namely, the Hittites, and the Amorites, the Canaanites, and the Perizzites, the Hivites, and the Jebusites; as the LORD thy God hath commanded thee:

This was said to Israel at a particular time, so it is wise to read it together with the surrounding text. Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
This is how you are to treat all the cities that are far away from you and do not belong to the nations nearby.
KJV
Thus shalt thou do unto all the cities which are very far off from thee, which are not of the cities of these nations.
WEB
Thus you shall do to all the cities which are very far off from you, which are not of the cities of these nations.
ASV
Thus shalt thou do unto all the cities which are very far off from thee, which are not of the cities of these nations.
DARBY
Thus shalt thou do unto all the cities that are very far off from thee, which are not of the cities of these nations.
BLB
Thus you shall do to all the cities very far from you, which are not from the cities of these nations.
ÅB
Slik skal du gjøre med alle de byer som ligger meget langt borte fra deg og ikke hører disse folk til.
OTB
Dette er fremgangsmåten du skal følge med alle byene som er langt borte fra deg og ikke tilhører de nærliggende nasjonene.
B1930
Således skal du gjøre med alle de byer som ligger meget langt borte fra dig og ikke hører disse folk til.

Study notes (Tyndale)

Original text and word study