It is narrated from Sayyiduna Sahl bin Abi Hathmah (may Allah be pleased with him) that the Messenger of Allah (ﷺ) forbade the sale of fruit for fruit except in the case of ‘Ariyyah sale. ‘Ariyyah sale is that the fruit on the date palm is estimated and taken in exchange for dry dates as fresh dates for the family to eat.
Hadith Referenceالسنن المأثورة / باب في البيوع / 198
Hadith Takhrijصحیح بخاری، البيوع، باب بيع الثمر على رؤس النخل، رقم : 2191، صحیح مسلم البيوع، باب تحريم بيع الرطب بالتمر الا فى العرايا ، رقم : 1540 ۔