Deuteronomy 20:11-15

LITV(i) 11 And it shall be, if it answers peace to you, and shall open to you, then it shall be that all the people found in it shall be forced laborers for you, and shall serve you. 12 And if it shall not make peace with you, and shall make war with you, then you shall lay siege against it. 13 And Jehovah your God shall give it into your hand; and you shall strike every male of it by the mouth of the sword. 14 Only, the women, and the little ones, and the livestock, and all in the city, all its plunder, you shall seize for yourself. And you shall eat the plunder of your enemies which Jehovah your God has given to you. 15 So you shall do to all the cities very far away from you, which are not of the cities of these nations.