It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that "(the Companions) were given permission to cut down palm trees, and then they were dealt with strictly in this matter. So they came to the Prophet (peace and blessings be upon him) and said: 'O Messenger of Allah (peace and blessings be upon him)! Is there any sin upon us for the trees we cut down, or for the trees we left (uncut)?' At this Allah, Glorified and Exalted, revealed this blessed verse: 'Whatever palm trees you cut down or left standing on their roots, it was by the permission of Allah' [Al-Hashr: 5]."
Hadith Referenceمسند أبي يعلى الموصلي / مسند جابر / 2189
Hadith Takhrij«قال سعيد بن محمد السناري: ضعيف: هذا إسناد ضعيف، وفيه ثلاث علل» «أخرجه سنن الترمذي برقم: 3303، وأخرجه الأحاديث المختارة برقم: 143، وأخرجه السنن الكبرى للنسائي برقم: 8970، 11686، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 5146، وأخرجه شرح مشكل الآثار برقم: 1110، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 5856، مسند ابویعلیٰ ترقیم الاثری: 2186»