Deuteronomy 20:13-15 Catholic Public Domain Version (CPDV)

13. And when the Lord your God will have delivered it into your hands, you shall strike down anyone who is in it, of the male gender, with the edge of the sword,

14. but not the women and young children, nor the cattle and the other things that are within the city. And you shall divide all the plunder to the soldiers, and you shall eat the spoils from your enemies, which the Lord your God will give to you.

15. So shall you do to all the cities which are at a great distance from you, those which are not among the cities that you shall receive as a possession.

Deuteronomy 20