Deuteronomy 20:13

13 and when the LORD your God gives it into your hand you shall put all its males to 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 And if its answer to you is peace and it opens to you, then all the people who are found in it shall do forced labor for you and shall serve you.
12 But if it makes no peace with you, but makes war against you, then you shall besiege it;
13 and when the LORD your God gives it into your hand you shall put all its males to the sword,
14 but the women and the little ones, the cattle, and everything else in the city, all its spoil, you shall take as booty for yourselves; and you shall enjoy the spoil of your enemies, which the LORD your God has given you.
15 Thus you shall do to all the cities which are very far from you, which are not cities of the nations here.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.