Deuteronomy 20:10-14King James Version (KJV)
10 When thou comest nigh unto a city to fight against it, then proclaim peace unto it.
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.
12 And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it:
13 And when the Lord thy God hath delivered it into thine hands, thou shalt smite every male thereof with the edge of the sword:
14 But the women, and the little ones, and the cattle, and all that is in the city, even all the spoil thereof, shalt thou take unto thyself; and thou shalt eat the spoil of thine enemies, which the Lord thy God hath given thee.