Sayyiduna Anas bin Malik (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) forbade "selling fruits before they ripen, and selling grain until it hardens, and selling grapes until they turn black."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 10598