"The Messenger of Allah said: 'Do not sell fruits until their condition is known, and do not sell fresh dates (still on the tree) for dried dates."' Ibn Shihab said: "Salim bin 'Abdullah narrated to me, from his father: 'That Messenger of Allah forbade from ..." similarly.
قَالَ رَسُولُ اللَّهِ ﷺ لاَ تَبِيعُوا الثَّمَرَ حَتَّى يَبْدُوَ صَلاَحُهُ وَلاَ تَبْتَاعُوا الثَّمَرَ بِالتَّمْرِ قَالَ ابْنُ شِهَابٍ حَدَّثَنِي سَالِمُ بْنُ عَبْدِ اللَّهِ عَنْ أَبِيهِ أَنَّ رَسُولَ اللَّهِ ﷺ نَهَى عَنْ مِثْلِهِ سَوَاءً