The Messenger of Allah ﷺ forbade the sale of fruits for several years in advance.
أخبرنا محمد بن منصور قال حدثنا سفيان عن أبي الزبير
نهى رسول الله ﷺ عن بيع السنين
No references are available.
Sourcing, [sahih] Humaydi transmitted it, no. 1291 (in my edition), from Sufyan bin Uyayna, through this route. It is also found in al-Kubra, no. 6222. See the following hadith, as it serves as a corroborating witness for it.