Deuteronomy 20:19

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:

Cross-reference

In 2 Kings 3:19, Israel is commanded to fell every good tree — directly opposing Deut 20:19's prohibition on cutting fruit trees.

In 2 Kings 3:25, the Israelites fell all good trees in Moab — directly violating Deut 20:19's command.