Abdullah bin Umar reported,

The Messenger of Allah ﷺ burned and cut down the palm trees of Banu Nadir at al-Buwayrah. Qutayba and Ibn Rumh added in their narration that Allah عز وجل then revealed, "Whatever palm trees you cut down or left standing on their roots, it was by the permission of Allah, and so that He might disgrace the defiantly disobedient" [Hashr 59:5].

Muslim 4552

Sahih

حدثنا يحيى بن يحيى ومحمد بن رمح قالا أخبرنا الليث و حدثنا قتيبة بن سعيد حدثنا ليث عن نافع

عن عبد الله

أن رسول الله ﷺ حرق نخل بني النضير وقطع وهي البويرة زاد قتيبة وابن رمح في حديثهما فأنزل الله عز وجل {ما قطعتم من لينة أو تركتموها قائمة على أصولها فبإذن الله وليخزي الفاسقين}

مسلم 4552صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Jihad and expeditions
Chapter
Permissibility of cutting down and burning the trees of the disbelievers
Numbering
Darussalam 4552
Muslim 4552