Deuteronomy 20:11-15

AKJV(i) 11 And it shall be, if it make you answer of peace, and open to you, then it shall be, that all the people that is found therein shall be tributaries to you, and they shall serve you. 12 And if it will make no peace with you, but will make war against you, then you shall besiege it: 13 And when the LORD your God has delivered it into your hands, you shall 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, shall you take to yourself; and you shall eat the spoil of your enemies, which the LORD your God has given you. 15 Thus shall you do to all the cities which are very far off from you, which are not of the cities of these nations.