Jabir (RA) reported Allah's Apostle (ﷺ) forbidding selling of (produce) in advance for two years, and in the narmtion of Ibu Abd Shaiba (the words are):" Selling of the fruits (on the tree) in advance for two years."
Hadith ReferenceSahih Muslim / The Book of Transactions / Hadith: 1536