Sahih Muslim Book 19, Hadith Number 4325.

Chapter : Justification for cutting down the trees and burning them.

It is narrated on the authority of Ibn Umar that the Messenger of Allah (may peace be upon him) caused the date-palms of Banu Nadir to be cut down and burnt. It is in this connection that Hassan (the poet) said:

It was easy for the nobles of Quraish to barn Buwaira whose sparks were flying in all directions.

in the same connection was revealed the Qur’anic verse: “Whatever trees you have cut down or left standing on their trunks.”