the Prophet forbade selling fresh dates still on the tree for dried dates. Ibn 'Umar said: "Azid bin Thabit narrated to me, that Messenger of Allah permitted that in the case o 'Ayaya"' (Using translation from Nasāʾī 4532)
أَنَّ النَّبِيَّ ﷺ نَهَى عَنْ بَيْعِ الثَّمَرِ بِالتَّمْرِ وَقَالَ ابْنُ عُمَرَ حَدَّثَنِي زَيْدُ بْنُ ثَابِتٍ أَنَّ رَسُولَ اللهِ ﷺ رَخَّصَ فِي بَيْعِ الْعَرَايَا