Deuteronomy 20:19 NCV

19 If you surround and attack a city for a long time, trying to capture it, do not destroy its trees with an ax. You can eat the fruit from the trees, but do not cut them down. These trees are not the enemy, so don't make war against them.