It is narrated from Jabir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade selling fruits before they are ripe. Ibn Jurayj says: I asked whether Jabir (may Allah be pleased with him) specified the date-palm tree or the dates themselves, so he said: Rather, the date-palm tree, and we consider this principle to apply to every fruit.
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1423
Hadith Takhrijاخرجه البخاري، البيوع، باب بيع الثمر على رؤوس النخل بالذهب أو الفضة (2189)، (2381)- ومسلم، البيوع ، باب النهي عن بيع الثمار قبل بدو صلاحها بغير شرط القطع (1536)۔