From Sahih Bukhari (Hadith 2204):
Narrated `Abdullah bin `Umar:Allah's Messenger (ﷺ) said, "If somebody sells pollinated date palms, the fruits will be for the seller unless the buyer stipulates that they will be for himself (and the seller agrees)
Reference: Bukhari 2204