Deuteronomy 20:10-18
10. When thou comest nigh unto a city to fight against it, then proclaim peace unto it.
10. Quum accesseris ad urbem ut expugnes illam, clamabis ad eam pacem.
11. And it shall be, if it make thee answer of peace, and open unto thee, then it shall be, that all the people that is found therein shall be tributaries unto thee, and they shall serve thee.
11. Et erit, si pacem responderit tibi, et aperuit tibi, universus populus qui fuerit repertus in ea, erunt tibi tributarii, servientque tibi.
12. And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it:
12. Si vero pacem non fecerit tecum, sed faciet tecum praelium, obsederis…
Keil & Delitzsch on Deuteronomy 20:12-14
If the hostile town, however, did not make peace, but prepared for war, the Israelites were to besiege it; and if Jehovah gave it into their hands, they were to slay all the men in it without reserve ("with the edge of the sword," see at Gen 34:26); but the women and children and all that was in the city, all its spoil, they were to take as prey for themselves, and to consume (eat) the spoil, i.e., to make use of it for their own maintenance.
Henry, Jamieson-Fausset-Brown, Clarke, Gill, Calvin and Keil & Delitzsch are in the public domain; Tyndale Open Study Notes © Tyndale House Publishers, CC BY-SA 4.0 — all from the Free Use Bible API (bible.helloao.org). Rashi: the Rosenbaum & Silbermann Pentateuch (public domain) and the Judaica Press and Metsudah Tanakh (CC BY), via Sefaria. Spurgeon's Treasury of David: public domain (lyteword's markdown edition, CC0).