From Sahih Muslim (Hadith 3901):
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
Reference: Muslim 3901