Deuteronomy 20:19-20

VIN(i) 19 When you besiege a city a long time in making war against it to take it, you must not destroy its trees by wielding an axe against them, for you may eat of them, and you shall not cut them down. Is the tree of the field a man, that it should be besieged by you? 20 However, you may cut down the trees whose fruit you know isn't edible, in order to build siege works against the city that waged war with you, until it falls."