13When the LORD your God has delivered it into your hand, you must put every male to the sword.
14But the women, children, livestock, and whatever else is in the city — all its spoil — you may take as plunder, and you shall use the spoil of your enemies that the LORD your God gives you.
— Deuteronomy 20:13-14