Deuteronomy 20:12

10 When thou comest nigh unto a city to fight against it, then proclaim peace unto it.

11 And it shall be, if it make thee answer of peace, and open unto thee, then it shall be, that all the people that is found therein shall be tributaries unto thee, and they shall serve thee.

And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it:

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.

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
But if they refuse to make peace with you and wage war against you, lay siege to that city.
KJV
And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it:
WEB
If it will make no peace with you, but will make war against you, then you shall besiege it.
ASV
And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it:
DARBY
And if it will not make peace with thee, but will make war with thee, then thou shalt besiege it;
BLB
And if it does not make peace with you and makes war against you, then you shall lay siege against it.
ÅB
Men dersom den ikke vil ha fred med deg, men føre krig mot deg, da skal du kringsette den,
OTB
Men hvis den nekter å slutte fred og fører krig mot deg, skal du beleire den.
B1930
Men dersom den ikke vil ha fred med dig, men føre krig mot dig, da skal du kringsette den,

Study notes (Tyndale)

Original text and word study