Sunan an-Nasa'i, Book 44, Hadith 179 (Nasa'i 4637)

It was narrated from Jabir that:

the Messenger of Allah forbade selling the produce several years in advance.