Sunan Abi Dawud, Book 24, Hadith 52 (Abu Dawud 3468)

Narrated Abdullah ibn Umar:

A man paid in advance for a palm-tree. It did not bear fruit that year. They brought their case for decision to the Prophet (ﷺ). He said: for which do you make his property lawful? He then said: Do not pay in advance for a palm-tree till they (the fruits) were clearly in good condition.