Messenger of Allah ﷺ said, "Do not sell fruits of dates until they become free from all the dangers of being spoilt or blighted; and do not sell fresh dates for dry dates." Narrated Salim and ʿAbdullah from Zaid bin Habit' "Later on Messenger of Allah ﷺ permitted the selling of ripe fruits on trees for fresh dates or dried dates in Bai'-al-'Araya, and did not allow it for any other kind of sale." (Using translation from Bukhārī 2183)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ «لَا تَبِيعُوا الثَّمَرَ حَتَّى يَبْدُوَ صَلَاحُهُ»