The Messenger of Allah ﷺ forbade selling date-palms until their fruit ripens.
حدثنا أحمد بن منيع حدثنا إسمعيل بن إبراهيم عن أيوب عن نافع
أن رسول الله ﷺ نهى عن بيع النخل حتى يزهو
Reference: Also narrated by Muslim in the Book of Sales, chapter on the prohibition of selling fruits before their soundness becomes apparent without a condition of picking, hadith no. 1535, from the hadith of Ismail bin Ulayyah, through him.