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."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لاَ تَبِيعُوا الثَّمَرَ حَتَّى يَبْدُوَ صَلاَحُهُ وَلاَ تَبِيعُوا الثَّمَرَ بِالتَّمْرِ قَالَ سَالِمٌ وَأَخْبَرَنِي عَبْدُ اللَّهِ عَنْ زَيْدِ بْنِ ثَابِتٍ أَنَّ رَسُولَ اللَّهِ ﷺ رَخَّصَ بَعْدَ ذَلِكَ فِي بَيْعِ الْعَرِيَّةِ بِالرُّطَبِ أَوْ بِالتَّمْرِ وَلَمْ يُرَخِّصْ فِي غَيْرِهِ