Deuteronomy 20:16-20 - Laws Concerning War With Canaanite Nations
16 But of the cities of these peoples, that LORD thy God gives thee for an inheritance, thou shall save alive nothing that breathes, 17 but thou shall utterly destroy them--the Hittite, and the Amorite, the Canaanite, and the Perizzite, the Hivite, and the Jebusite--as LORD thy God has commanded thee, 18 that they not teach you to do after all their abominations, which they have done to their gods, so ye would sin against LORD your God.
19 When thou shall besiege a city a long time, in making war against it to take it, thou shall not destroy the trees of it by wielding an axe against them, for thou may eat of them. And thou shall not cut them down, for is the tree of 20 Only the trees of which thou know that they are not trees for food, thou shall destroy and cut them down. And thou shall build bulwarks against the city that makes war with thee, until it falls.