Deuteronomy 20:11-18

MSB(i) 11 If they accept your offer of peace and open their gates, all the people there will become forced laborers to serve you. 12 But if they refuse to make peace with you and wage war against you, lay siege to that city. 13 When the LORD your God has delivered it into your hand, you must put every male to the sword. 14 But the women, children, livestock, and whatever else is in the city—all its spoil—you may take as plunder, and you shall use the spoil of your enemies that the LORD your God gives you. 15 This is how you are to treat all the cities that are far away from you and do not belong to the nations nearby. 16 However, in the cities of the nations that the LORD your God is giving you as an inheritance, you must not leave alive anything that breathes. 17 For you must devote them to complete destruction—the Hittites, Amorites, Canaanites, Perizzites, Hivites, and Jebusites—as the LORD your God has commanded you, 18 so that they cannot teach you to do all the detestable things they do for their gods, and so cause you to sin against the LORD your God.