Deuteronomy 19:5garzen
For example, suppose someone goes into the forest with a neighbor to cut wood and swings an ax to cut down a tree. If the ax head flies off the handle, hitting and killing the neighbor, the one who killed him may run to one of these cities to save his life.
Accidental killing by a flying ax head; refuge cities protect.
Deuteronomy 20:19garzen
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.
Law forbids cutting down fruit trees with an ax in war.