It was narrated from Jabir that:the Messenger of Allah forbade selling the produce several years in advance.
أَخْبَرَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، قَالَ حَدَّثَنَا سُفْيَانُ، عَنْ حُمَيْدٍ الأَعْرَجِ، عَنْ سُلَيْمَانَ، - وَهُوَ ابْنُ عَتِيقٍ - عَنْ جَابِرٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَى عَنْ بَيْعِ السِّنِينَ .
Nesai
The Book of Financial Transactions • Hadith 4627