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.
bukhari:4030ʿAbdullāh b. Abū al-Aswad > Muʿtamir from his father > Anas b. Mālik

Some people used to allot some date palm trees to the Prophet ﷺ as gift till he conquered Banu Quraiza and Bani An-Nadir, where upon he started returning their date palms to them.  

البخاري:٤٠٣٠حَدَّثَنَا عَبْدُ اللَّهِ بْنُ أَبِي الأَسْوَدِ حَدَّثَنَا مُعْتَمِرٌ عَنْ أَبِيهِ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ ؓ قَالَ

كَانَ الرَّجُلُ يَجْعَلُ لِلنَّبِيِّ ﷺ النَّخَلاَتِ حَتَّى افْتَتَحَ قُرَيْظَةَ وَالنَّضِيرَ فَكَانَ بَعْدَ ذَلِكَ يَرُدُّ عَلَيْهِمْ  


See similar narrations below:

Collected by Bukhārī
bukhari:3128ʿAbdullāh b. Abū al-Aswad > Muʿtamir from his father > Anas b. Mālik

People used to give some of their datepalms to the Prophet (as a gift), till he conquered Bani Quraiza and Bani An-Nadir, whereupon he started returning their favors.  

البخاري:٣١٢٨حَدَّثَنَا عَبْدُ اللَّهِ بْنُ أَبِي الأَسْوَدِ حَدَّثَنَا مُعْتَمِرٌ عَنْ أَبِيهِ قَالَ

سَمِعْتُ أَنَسَ بْنَ مَالِكٍ ؓ يَقُولُ كَانَ الرَّجُلُ يَجْعَلُ لِلنَّبِيِّ ﷺ النَّخَلاَتِ حَتَّى افْتَتَحَ قُرَيْظَةَ وَالنَّضِيرَ فَكَانَ بَعْدَ ذَلِكَ يَرُدُّ عَلَيْهِمْ