From Sahih Bukhari (Hadith 4030):
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
Reference: Bukhari 4030