From Sahih Bukhari (Hadith 4031):
Narrated Ibn `Umar:Allah's Messenger (ﷺ) had the date-palm trees of Bani Al-Nadir burnt and cut down at a place called Al- Buwaira. Allah then revealed: "What you cut down of the date-palm trees (of the enemy) Or you left them standing on their stems. It was by Allah's Permission
Reference: Bukhari 4031