Sayyiduna Abdullah bin Umar (may Allah be pleased with him) said: An advance sale in wheat at a known price and for a known term is permissible, provided the sale does not concern an unripe crop.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 11086