The Prophet ﷺ forbade the sale of fruits till they were clearly in good condition , and (ordered that) they should not be sold but for dinar or dirham except Araya.
أَنَّ النَّبِيَّ ﷺ نَهَى عَنْ بَيْعِ الثَّمَرِ حَتَّى يَبْدُوَ صَلاَحُهُ وَلاَ يُبَاعُ إِلاَّ بِالدِّينَارِ أَوْ بِالدِّرْهَمِ إِلاَّ الْعَرَايَا