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:
19. When thou shalt besiege a city a long time. I have not hesitated to annex this precept to the Eighth Commandment, for when God lays a restraint on the liberty of inflicting injuries in the very heat of war, with respect to felling trees, much more did He desire His people to abstain from all mischievous acts in time of peace.
They are here directed what method to take in dealing with the cities (these only are mentioned, Deu 20:10, but doubtless the armies in the field, and the nations they had occasion to deal with, are likewise intended) upon which they made war.
Commenting on Deuteronomy 20:10-20
When thou shalt besiege a city a long time, in making war against it to take it,.... Before it will surrender; it holding out the siege a considerable time: the Hebrew text says, "many days" (c); which the Targum of Jonathan interprets of all the seven days, to make war against it, in order to subdue it on the sabbath day.