Deuteronomy 20:19

Amplified Bible (AMP)
“When you besiege a city for [d]a long time, making war against it in order to capture it, you shall not destroy its [fruit-bearing] trees by swinging an axe against them; for you may eat from them, and you shall not cut them down. For is the tree of the field a man, that it should be besieged (destroyed) by you?

Read Deuteronomy 20:19 in other translations