The Prophet (ﷺ) forbade the sale of grapes till they became black and the sale of grain till it had become hard.
Sunan Abi Dawud Book 23, Hadith 46