The Messenger of Allah ﷺ burned and cut down the date palms of Banu Nadir at al-Buwayrah. So Allah revealed, "Whatever palm trees you cut down or left standing on their roots" [Hashr 59:5].
حدثنا محمد بن رمح أنبأنا الليث بن سعد عن نافع
أن رسول الله ﷺ حرق نخل بني النضير وقطع وهي البويرة فأنزل الله عز وجل {ما قطعتم من لينة أو تركتموها قائمة} الآية الآية
Bukhari narrated it in the Book of Military Expeditions, Chapter on the Hadith of Banu Nadir, 4031, from the hadith of Layth, and Muslim narrated it in the Book of Military Expeditions, Chapter on the Permissibility of Cutting Down and Burning the Trees of the Disbelievers, hadith 1746, from Ibn Ramh, with the same chain.