"Do not sell fruits until they have ripened." And he forbade (both) the seller and the purchaser (to engage in such a transaction).
Sunan Ibn Majah Book 12, Hadith 78