Deuteronomy 20:13

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

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

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.

15 This is how you are to treat all the cities that are far away from you and do not belong to the nations nearby.

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
When the LORD your God has delivered it into your hand, you must put every male to the sword.
KJV
And when the LORD thy God hath delivered it into thine hands, thou shalt smite every male thereof with the edge of the sword:
WEB
When the LORD your God delivers it into your hand, you shall strike every male of it with the edge of the sword;
ASV
and when Jehovah thy God delivereth it into thy hand, thou shalt smite every male thereof with the edge of the sword:
DARBY
and when Jehovah thy God delivereth it into thy hand, thou shalt smite every male thereof with the edge of the sword:
BLB
And YHWH your God has delivered it into your hands, and you shall strike every male in it with the mouth of the sword.
ÅB
og Herren din Gud skal gi den i din hånd; og du skal slå alt mannkjønn der ihjel med sverdets egg;
OTB
Når Herren din Gud overgir den i dine hender, skal du slå alle mennene der med sverd.
B1930
og Herren din Gud skal gi den i din hånd; og du skal slå alt mannkjønn der ihjel med sverdets egg;

Study notes (Tyndale)

Original text and word study

Cross references