Messenger of Allah ﷺ forbade the sale of date fruits till they were ripe. Abu ʿAbdullah (Al-Bukhari) said, "That means till they were red (can be eaten).
أَنَّ رَسُولَ اللَّهِ ﷺ نَهَى أَنْ تُبَاعَ ثَمَرَةُ النَّخْلِ حَتَّى تَزْهُوَ قَالَ أَبُو عَبْدِ اللَّهِ يَعْنِي حَتَّى تَحْمَرَّ