It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade selling the fruit of the date-palm before it ripens. Ripening means the appearance of redness.
Hadith Referenceالسنن المأثورة / باب في البيوع / 193
Hadith Takhrijصحیح بخاری ، البيوع، باب بيع الثمار قبل ان يبدو صلاتها، رقم : 2195، صحیح مسلم المساقاة، باب وضع الحوائج ، رقم : 1555 ۔