From Sahih Bukhari (Hadith 2192):
Narrated Ibn `Umar from Zaid bin Thabit:Allah's Messenger (ﷺ) allowed the sale of 'Araya by estimating the dates on them for measured amounts of dried dates. Musa bin `Uqba said, "Al- 'Araya were distinguished date palms; one could come and buy them (i.e. their fruits)
Reference: Bukhari 2192