It is narrated from Tawus that he heard Ibn Umar (may Allah be pleased with him) say that fruits should not be sold before they are ripe. And we heard Ibn Abbas (may Allah be pleased with him) say that fruits should not be sold until they are eaten (i.e., until they become fit for eating).
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1424
Hadith Takhrijاسناده صحیح اخرجه البيهقي : 302/5 - وفي المعرفة السنن والآثار له (3397) - وقد ثبت مرفوعا عن ابن عيمر اخرجه احمد: 2 /61 ، 80 ۔ والنسائي ، البيوع، باب بيع الثمر قبل ان يبدو صلاحها (4526) - وعن ابن عباس اخرجه احمد : 2491 ، 357 - والدارقطني : 14/3، 15 - وصححه الحاكم: 2/ 37- وابن حبان۔