the Messenger of Allah ﷺ forbade selling fruits until they have changed the color, and selling grapes until they have turned black, and selling grains until they have hardened. (Using translation from Ibn Mājah 2217)
أَنَّ رَسُولَ اللَّهِ ﷺ «نَهَى عَنْ بَيْعِ الْحَبِّ حَتَّى يَشْتَدَّ وَعَنْ بَيْعِ الْعِنَبِ حَتَّى يَسْوَدَّ وَعَنْ بَيْعِ التَّمْرِ حَتَّى يَحْمَرَّ وَيَصْفَرَّ»