Sahih al-Bukhari — Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) — Hadith No: 4030
Translation
Narrated Anas bin Malik: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