Deuteronomy 20:19

When you will have besieged a city for a long time, and you will have encircled it with fortifications, so that you may fight against it, you shall not cut down trees from which one is able to eat, neither shall you cause devastation with axes to the surrounding region. For it is a tree, and not a man. It is not able to increase the number of those who are fighting against you

Other versions

King James Version

When thou shalt besiege a city a long time, in making war against it to take it, thou shalt not destroy the trees thereof by forcing an axe against them: for thou mayest eat of them, and thou shalt not cut them down (for the tree of the field is man's life) to employ them in the siege:

English Standard Version

"When you besiege a city for a long time, making war against it in order to take it, you shall not destroy its trees by wielding an axe against them. You may eat from them, but you shall not cut them down. Are the trees in the field human, that they should be besieged by you?

New International Version

When you lay siege to a city for a long time, fighting against it to capture it, do not destroy its trees by putting an ax to them, because you can eat their fruit. Do not cut them down. Are the trees of the field people, that you should besiege them?