Sahih Muslim, Book 21, Hadith 100 (Muslim 3863)

Ibn Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying:

If anyone buys palm-trees after they have been fecundated the fruit belongs to the seller unless the buyer makes a proviso.