It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) regarding the statement of Allah, the Mighty and Majestic, "Whatever palm trees you cut down or left standing on their trunks, it was by the permission of Allah", that he said: "Linah means the palm tree. And 'and so that He may disgrace the defiantly disobedient' means that the Muslims brought them down from their fortresses, and they were ordered to cut down the palm trees, and this troubled their hearts. So the Muslims said: We cut down some trees and left others; we will surely ask the Messenger of Allah (peace and blessings be upon him): Is there any reward for us for the trees that we cut down? And is there any sin upon us for the trees that we left? So Allah, the Mighty and Majestic, revealed this verse: 'Whatever palm trees you cut down or left standing on their trunks, it was by the permission of Allah, and so that He may disgrace the defiantly disobedient.'"
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from Habib bin Abi Amrah except Hafs bin Ghiyath, and Affan is alone in narrating it."
Imam al-Tirmidhi and Imam al-Nasa'i (may Allah have mercy on them both) both narrated it from al-Hasan bin Muhammad al-Za'farani, from Affan, and Imam al-Tirmidhi (may Allah have mercy on him) said: "This hadith is hasan gharib."
And Imam al-Tirmidhi (may Allah have mercy on him) also narrated it from Abdullah bin Abd al-Rahman, from Harun bin Mu'awiyah, from Hafs bin Ghiyath as mursal; Sayyiduna Ibn Abbas (may Allah be pleased with them both) is not mentioned in it.