Deuteronomy 20:13

13 until the Lord thy God shall deliver it into thy hands, and thou shalt smite every male of it with the edge of the sword:

Deuteronomy 20:13 Meaning and Commentary

Deuteronomy 20:13

And when the Lord thy God hath delivered it into thine hands,
&c.] When, what with pressures without, and calamities within, the city is obliged to surrender: this is not to be imputed to the methods and arts of war used in besieging, or to the courage and skill of the besiegers; but to the power and providence of God succeeding means used, and sending famine or pestilence among the besieged, and inclining their hearts to deliver up their city:

thou shall smite every male thereof with the edge of the sword;
the men in it, grown persons, as distinguished from little ones in the next verse; because it was owing to these it was not surrendered at once, when terms of peace were offered.

Deuteronomy 20:13 In-Context

11 If then they should answer peaceably to thee, and open to thee, it shall be that all the people found in it shall be tributary and subject to thee.
12 But if they will not hearken to thee, but wage war against thee, thou shalt invest it;
13 until the Lord thy God shall deliver it into thy hands, and thou shalt smite every male of it with the edge of the sword:
14 except the women and the stuff: and all the cattle, and whatsoever shall be in the city, and all the plunder thou shalt take as spoil for thyself, and shalt eat all the plunder of thine enemies whom the Lord thy God gives thee.
15 Thus shalt thou do to all the cities that are very far off from thee, not of the cities of these nations which the Lord thy God gives thee to inherit their land.

The Brenton translation of the Septuagint is in the public domain.