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).
Sahih al-Bukhari Book 34, Hadith 136