Deuteronomy 20:12

10 When you approach a city to fight against it, you are to make an offer of peace.

11 If they accept your offer of peace and open their gates, all the people there will become forced laborers to serve you.

But if they refuse to make peace with you and wage war against you, lay siege to that city.

13 When the LORD your God has delivered it into your hand, you must put every male to the sword.

14 But the women, children, livestock, and whatever else is in the city—all its spoil—you may take as plunder, and you shall use the spoil of your enemies that the LORD your God gives you.

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