The Messenger of Allah ﷺ burned and cut down the palm trees of Banu Nadir at the place known as al-Buwayrah. Then Allah revealed, "Whatever palm trees you cut down or left standing upon their roots, it was by the permission of Allah, and so that He might disgrace the defiantly disobedient" [Hashr 59:5].
حدثنا قتيبة حدثنا الليث عن نافع
أن رسول الله ﷺ حرق نخل بني النضير وقطع وهي البويرة فأنزل الله {ما قطعتم من لينة أو تركتموها قائمة على أصولها فبإذن الله وليخزي الفاسقين}
Sourcing, agreed upon by Bukhari and Muslim. Bukhari related it in the tafsir, chapter of His saying "whatever palm trees you cut down", hadith 4884, and Muslim related it, hadith 1746, from Qutayba through him.On this topic, there is also a narration from Ibn Abbas [to come, 3303].