TT #317 · Parashas Shoftim · Seventh Aliyah · Passuk 20:13
And the Eternal your God will give it into your hand, and you shall strike all its males with the edge of the sword.
Torah Temimah points to Sifrei Devarim 200.
TT lemma: וְהִכִּיתָ אֶת כׇּל זְכוּרָהּ לְפִי חָרֶב.
English: ‘And you shall strike all its males with the edge of the sword’ – the males only.
Derash limiting the killing (Sifrei) — the verse specifies the males, not the whole population.
When a distant city refuses peace and is taken, only the males are put to the sword; the women and children are treated differently.