Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:2199al-Layth > Yūnus > Ibn Shihāb > Law > a man Ābtāʿ Thamar Qabl > Yabdū

If somebody bought fruits before their benefit is evident and then the fruits were spoiled with blights, the loss would be suffered by the owner (not the buyer). Narrated Salim bin 'Abdullah from Ibn Umar: Messenger of Allah ﷺ said, "Do not sell or buy fruits before their benefit was evident and do not sell fresh fruits (dates) for dried dates."  

البخاري:٢١٩٩قَالَ اللَّيْثُ حَدَّثَنِي يُونُسُ عَنِ ابْنِ شِهَابٍ قَالَ

لَوْ أَنَّ رَجُلاً ابْتَاعَ ثَمَرًا قَبْلَ أَنْ يَبْدُوَ صَلاَحُهُ ثُمَّ أَصَابَتْهُ عَاهَةٌ كَانَ مَا أَصَابَهُ عَلَى رَبِّهِ أَخْبَرَنِي سَالِمُ بْنُ عَبْدِ اللَّهِ عَنِ ابْنِ عُمَرَ ؓ أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لاَ تَتَبَايَعُوا الثَّمَرَ حَتَّى يَبْدُوَ صَلاَحُهَا وَلاَ تَبِيعُوا الثَّمَرَ بِالتَّمْرِ