Mishkat al-Masabih
Sahl b. Abu Hathma said that God’s Messenger forbade the sale of fruit for dried dates but gave licence regarding the ariya for its sale on the basis of a calculation of what the dates would be when dry, yet those who bought them could eat them when fresh. (Bukhari and Muslim.)
وَعَنْ سَهْلِ بْنِ أَبِي حَثْمَةَ قَالَ: نَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَن بيعِ التمْر بالتمْرِ إِلَّا أَنَّهُ رَخَّصَ فِي الْعَرِيَّةِ أَنْ تُبَاعَ بِخَرْصِهَا تَمْرًا يَأْكُلُهَا أَهْلُهَا رُطَبًا
Reference