Deuteronomy 20:11-15

MKJV(i) 11 And it shall be, if it makes the answer of peace and opens to you, then all the people found in it shall be forced laborers to you, and they shall serve you. 12 But if it will make no peace with you, but will make war against you, then you shall besiege it. 13 And when Jehovah your God has delivered it into your hands, you shall strike every male of it with the edge of the sword. 14 But the women, and the little ones, and the cattle, and all that is in the city, all the spoil of it, you shall take to yourself. And you shall eat the spoil of your enemies, which Jehovah your God has given you. 15 So you shall do to all the cities which are very far off from you, which are not of the cities of these nations.