Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:59:5

Whatever you have cut down of ˹their˺ palm trees or left standing on their trunks - it was by permission of Allah and so He would disgrace the defiantly disobedient.  

Whatever palm-trees you cut down, O Muslims, or left standing on their roots, it was by God’s leave: He gave you the choice in this matter, and in order that, by giving ˹you˺ leave to cut them down, He might disgrace those who are immoral, the Jews, in return for their objection that the cutting down of productive trees was ˹deliberate˺ spoiling ˹of the land˺.
القرآن:٥٩:٥

مَا قَطَعْتُمْ مِنْ لِينَةٍ أَوْ تَرَكْتُمُوهَا قَائِمَةً عَلَىٰ أُصُولِهَا فَبِإِذْنِ اللَّهِ وَلِيُخْزِيَ الْفَاسِقِينَ  

{ما قطعتم} يا مسلمون {من لينة} نخلة {أو تركتموها قائمة على أصولها فبأذن الله} أي خيَّركم في ذلك {وليخزيَ} بالإذن في القطع {الفاسقين} اليهود في اعتراضهم أن قطع الشجر المثمر فساد.

See similar narrations below:

Collected by Bukhārī, Muslim, Tirmidhī, Aḥmad, Nasāʾī's Kubrá
bukhari:4884Qutaybah > Layth > Nāfiʿ > Ibn ʿUmar

'Messenger of Allah ﷺ burnt and cut down the palm trees of Bani An-Nadir which were at Al-Buwair (a place near Medina). There upon Allah revealed: 'What you (O Muslims) cut down of the palm trees (of the enemy) or you left them standing on their stems, it was by the leave of Allah, so that He might cover with shame the rebellious.' (59.5)  

البخاري:٤٨٨٤حَدَّثَنَا قُتَيْبَةُ حَدَّثَنَا لَيْثٌ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ ؓ

أَنَّ رَسُولَ اللَّهِ ﷺ حَرَّقَ نَخْلَ بَنِي النَّضِيرِ وَقَطَعَ وَهْىَ الْبُوَيْرَةُ فَأَنْزَلَ اللَّهُ تَعَالَى {مَا قَطَعْتُمْ مِنْ لِينَةٍ أَوْ تَرَكْتُمُوهَا قَائِمَةً عَلَى أُصُولِهَا فَبِإِذْنِ اللَّهِ وَلِيُخْزِيَ الْفَاسِقِينَ}  

bukhari:4031Ādam > al-Layth > Nāfiʿ > Ibn ʿUmar

Messenger of Allah ﷺ 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." (59.5)  

البخاري:٤٠٣١حَدَّثَنَا آدَمُ حَدَّثَنَا اللَّيْثُ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ ؓ قَالَ

حَرَّقَ رَسُولُ اللَّهِ ﷺ نَخْلَ بَنِي النَّضِيرِ وَقَطَعَ وَهْىَ الْبُوَيْرَةُ فَنَزَلَتْ {مَا قَطَعْتُمْ مِنْ لِينَةٍ أَوْ تَرَكْتُمُوهَا قَائِمَةً عَلَى أُصُولِهَا فَبِإِذْنِ اللَّهِ}  

muslim:1746a[Chain 1] Yaḥyá b. Yaḥyá And Muḥammad b. Rumḥ > al-Layth [Chain 2] Qutaybah b. Saʿīd > Layth > Nāfiʿ > ʿAbdullāh > Rasūl

So Allah, the Glorious and Exalted, revealed the verse:" Whatever trees you have cut down or left standing on their trunks, it was with the permission of Allah so that He may disgrace the evil-doers" (lix. 5).  

مسلم:١٧٤٦aحَدَّثَنَا يَحْيَى بْنُ يَحْيَى وَمُحَمَّدُ بْنُ رُمْحٍ قَالاَ أَخْبَرَنَا اللَّيْثُ ح وَحَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ حَدَّثَنَا لَيْثٌ عَنْ نَافِعٍ عَنْ عَبْدِ اللَّهِ

أَنَّ رَسُولَ اللَّهِ ﷺ حَرَّقَ نَخْلَ بَنِي النَّضِيرِ وَقَطَعَ وَهِيَ الْبُوَيْرَةُ زَادَ قُتَيْبَةُ وَابْنُ رُمْحٍ فِي حَدِيثِهِمَا فَأَنْزَلَ اللَّهُ ﷻ { مَا قَطَعْتُمْ مِنْ لِينَةٍ أَوْ تَرَكْتُمُوهَا قَائِمَةً عَلَى أُصُولِهَا فَبِإِذْنِ اللَّهِ وَلِيُخْزِيَ الْفَاسِقِينَ}  

tirmidhi:3302Qutaybah > al-Layth > Nāfiʿ > Ibn ʿUmar

“The Messenger of Allah ordered burning and cutting down the date palms of Banu An-Nadir, and that (place was called Al-Buwairah. So Allah revealed: What you cut down of the Linah, or you left of them standing on their trunks, it was by the leave of Allah, and in order that He might disgrace the rebellious.”  

Abū ʿĪsá said that this Ḥadīth is Ḥasan-Ṣaḥīḥ.
الترمذي:٣٣٠٢حَدَّثَنَا قُتَيْبَةُ حَدَّثَنَا اللَّيْثُ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ ؓ قَالَ

حَرَّقَ رَسُولُ اللَّهِ ﷺ نَخْلَ بَنِي النَّضِيرِ وَقَطَّعَ وَهِيَ الْبُوَيْرَةُ فَأَنْزَلَ اللَّهُ (ما قَطَعْتُمْ مِنْ لِينَةٍ أَوْ تَرَكْتُمُوهَا قَائِمَةً عَلَى أُصُولِهَا فَبِإِذْنِ اللَّهِ وَلِيُخْزِيَ الْفَاسِقِينَ )  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ
ahmad:6054Yūnus > Layth > Nāfiʿ > ʿAbdullāh

'Messenger of Allah ﷺ burnt and cut down the palm trees of Bani An-Nadir which were at Al-Buwair (a place near Medina). There upon Allah revealed: 'What you (O Muslims) cut down of the palm trees (of the enemy) or you left them standing on their stems, it was by the leave of Allah, so that He might cover with shame the rebellious.' (59.5) (Using translation from Bukhārī 4884)  

أحمد:٦٠٥٤حَدَّثَنَا يُونُسُ حَدَّثَنَا لَيْثٌ عَنْ نَافِعٍ عَنْ عَبْدِ اللهِ

أَنَّ رَسُولَ اللهِ ﷺ حَرَّقَ نَخْلَ بَنِي النَّضِيرِ وَقَطَّعَ وَهِيَ الْبُوَيْرَةُ فَأَنْزَلَ اللهُ تَبَارَكَ وَتَعَالَى {مَا قَطَعْتُمْ مِنْ لِينَةٍ أَوْ تَرَكْتُمُوهَا قَائِمَةً عَلَى أُصُولِهَا فَبِإِذْنِ اللهِ وَلِيُخْزِيَ الْفَاسِقِينَ} [الحشر 5]  

قَوْلُهُ تَعَالَى: {مَا قَطَعْتُمْ مِنْ لِينَةٍ} [الحشر: 5]

nasai-kubra:11509Qutaybah b. Saʿīd > al-Layth > Nāfiʿ > Ibn ʿUmar

'Messenger of Allah ﷺ burnt and cut down the palm trees of Bani An-Nadir which were at Al-Buwair (a place near Medina). There upon Allah revealed: 'What you (O Muslims) cut down of the palm trees (of the enemy) or you left them standing on their stems, it was by the leave of Allah, so that He might cover with shame the rebellious.' (59.5) (Using translation from Bukhārī 4884)  

الكبرى للنسائي:١١٥٠٩أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ قَالَ حَدَّثَنَا اللَّيْثُ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ

أَنَّ رَسُولَ اللهِ ﷺ حَرَّقَ نَخْلَ بَنِي النَّضِيرِ وَقَطَعَ وَهِيَ الْبُوَيْرَةُ فَأَنْزَلَ اللهُ تَبَارَكَ وَتَعَالَى {مَا قَطَعْتُمْ مِنْ لِينَةٍ أَوْ تَرَكْتُمُوهَا قَائِمَةً عَلَى أُصُولِهَا فَبِإِذْنِ اللهِ وَلِيُخْزِيَ الْفَاسِقِينَ} [الحشر 5]  

nasai-kubra:8554Qutaybah b. Saʿīd > al-Layth > Nāfiʿ > Ibn ʿUmar

'Messenger of Allah ﷺ burnt and cut down the palm trees of Bani An-Nadir which were at Al-Buwair (a place near Medina). There upon Allah revealed: 'What you (O Muslims) cut down of the palm trees (of the enemy) or you left them standing on their stems, it was by the leave of Allah, so that He might cover with shame the rebellious.' (59.5) (Using translation from Bukhārī 4884)  

الكبرى للنسائي:٨٥٥٤أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ قَالَ حَدَّثَنَا اللَّيْثُ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ

أَنَّ رَسُولَ اللهِ ﷺ حَرَّقَ نَخْلَ بَنِي النَّضِيرِ وَقَطَعَ وَهِيَ الْبُوَيْرَةُ فَأَنْزَلَ اللهُ {مَا قَطَعْتُمْ مِنْ لِينَةٍ أَوْ تَرَكْتُمُوهَا قَائِمَةً عَلَى أُصُولِهَا فَبِإِذْنِ اللهِ وَلِيُخْزِي الْفَاسِقِينَ} [الحشر 5]