Devarim / Deuteronomy 20:19 · Sod
כִּי־תָצוּר אֶל־עִיר יָמִים רַבִּים לְהִלָּחֵם עָלֶיהָ לְתָפְשָׂהּ לֹא־תַשְׁחִית אֶת־עֵצָהּ לִנְדֹּחַ עָלָיו גַּרְזֶן כִּי מִמֶּנּוּ תֹאכֵל וְאֹתוֹ לֹא תִכְרֹת כִּי הָאָדָם עֵץ הַשָּׂדֶה לָבֹא מִפָּנֶיךָ בַּמָּצוֹר׃
When you besiege a city for many days, fighting against it to capture it, you shall not destroy its trees by wielding an axe against them. For you eat from them, and you shall not cut them down. Is the tree of the field a man, that it should go before you into the siege?
Sod סוֹד
A clear mind in the middle of war
In anger it is easy to break what will be needed later. The Torah asks for calm even where there is war.
Mei HaShiloach: a house is rest, a road is turmoil. King David asked to live always in rest. And here the Torah teaches: even in the middle of war and anger, let a person keep a clear mind, so as not to spoil what can be of use, even a little. This is the virtue of Israel: even in anger they look for the good point in every thing.
How Mei HaShiloach explain it
Mei HaShiloach When you besiege a city for many days, fighting against it to capture it, you shall not destroy its trees
Of this it says: "That I may dwell in the house of the Eternal all the days of my life" (Tehillim / Psalms 27:4). A house is rest, and a road is turmoil. That is why King David, peace be upon him, prayed to be always at rest, without any turmoil. And of this the Torah warns here: even in a time of turmoil and anger, let there be found in a person a settled mind (יִשּׁוּב הַדַּעַת), so as not to spoil a thing from which one can have use, even a small one. That is why it is written: "When you besiege" and so on, "fighting against it", and still "you shall not destroy its trees". And in this is the virtue of Israel: even in a time of anger there is a settled mind in them. And as it says: "And I will set apart on that day the land of Goshen, in which My people stand, so that no wild beasts (עָרֹב) shall be there" (Shemot / Exodus 8:18): the Eternal will make clear that Israel want only the good point that is in every thing (as explained on this verse in this part of the book).
Takeaway
"That I may dwell in the house of the Eternal all the days of my life" is a psalm of David (Tehillim / Psalms 27:4). Mei HaShiloach reads "house" as rest of the soul.
A settled mind (יִשּׁוּב הַדַּעַת) is a calm, collected state in which a person sees things as they are.
עָרֹב is the fourth plague of Egypt, the swarm of wild beasts. The word itself also means "mixture". It did not touch the land of Goshen, where the children of Israel lived (Shemot / Exodus 8:18). Mei HaShiloach sees a sign in this: Israel want only the good, with nothing mixed in.
Mei HaShiloach refers to his own explanation of that verse in the same book. It is not given here.