Deuteronomy 20
13 Ref And when the Lord your God has given it into your hands, let every male in it be put to death without mercy.
14 Ref But the women and the children and the cattle and everything in the town and all its wealth, you may take for yourselves: the wealth of your haters, which the Lord your God has given you, will be your food.