Ibn 'Umar (Allah be pleased with them) reported that Messenger of Allah ﷺ forbade the sale of fruits until they were clearly in good condition, he forbade it both to the seller and to the buyer.
أَنَّ رَسُولَ اللَّهِ ﷺ نَهَى عَنْ بَيْعِ الثَّمَرِ حَتَّى يَبْدُوَ صَلاَحُهَا نَهَى الْبَائِعَ وَالْمُبْتَاعَ