(13) باب النَّهْىِ عَنْ بَيْعِ الثِّمَارِ، قَبْلَ بُدُوِّ صَلاَحِهَا بِغَيْرِ شَرْطِ الْقَطْعِ
Ibn 'Umar (Allah be pleased with them) reported that Allah's Messenger (ﷺ) forbade the sale of palm-trees (i. e. their trults) until the dates began to ripen, and ears of corn until they were white and were safe from blight. He forbade the seller and the buyer.
Reference: Sahih Muslim 1535
In-book reference: Book 21, Hadith 63
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3666