Bashair b. Yasir reported on the authority of some of the Companions of Messenger of Allah ﷺ among the members of his family among whom one was Sahl b. Abu Hathma that Messenger of Allah ﷺ forbade buying of fresh dates against dry dates and that it is Riba and this is Muzabana, but he made an exemption of 'ariyya (donations) of a tree or two in which case the members of a family sell dry dates and buy fresh dates for eating them.
عَنْ بَعْضِ أَصْحَابِ رَسُولِ اللَّهِ ﷺ مِنْ أَهْلِ دَارِهِمْ مِنْهُمْ سَهْلُ بْنُ أَبِي حَثْمَةَ أَنَّ رَسُولَ اللَّهِ ﷺ نَهَى عَنْ بَيْعِ الثَّمَرِ بِالتَّمْرِ وَقَالَ ذَلِكَ الرِّبَا تِلْكَ الْمُزَابَنَةُ إِلاَّ أَنَّهُ رَخَّصَ فِي بَيْعِ الْعَرِيَّةِ النَّخْلَةِ وَالنَّخْلَتَيْنِ يَأْخُذُهَا أَهْلُ الْبَيْتِ بِخَرْصِهَا تَمْرًا يَأْكُلُونَهَا رُطَبًا