It is narrated from Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace be upon him) forbade Muzabana, and Muzabana is that dates on the tree are sold by measure in exchange for plucked dates, and grapes on the vine are sold by measure in exchange for dried grapes.
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1411
Hadith Takhrijاخرجه البخاري ، البيوع، باب بيع المزابنة ، وهي بيع التمر بالثر...... الخ (2185) ومسلم، البيوع، باب تحريم بيع الرطب بالتمر الا في العرايا (1542)۔