Sahih al-Bukhari, Book 34, Hadith 136 (Bukhari 2108)
Narrated Jabir:
The Prophet (ﷺ) forbade the selling of fruits unless they get ripe, and none of them should be sold except for Dinar or Dirham (i.e. money), except the 'Araya trees (the dates of which could be sold for dates).