The Messenger of Allah ﷺ forbade muzabanah. Muzabanah means selling the dates still on the palm trees in exchange for a specified measure of harvested dates, with the buyer saying, "If it turns out to be more, the extra is mine, and if it falls short, the loss is on me."
حدثني علي بن حجر السعدي وزهير بن حرب قالا حدثنا إسمعيل وهو ابن إبراهيم عن أيوب عن نافع
أن رسول الله ﷺ نهى عن المزابنة والمزابنة أن يباع ما في رءوس النخل بتمر بكيل مسمى إن زاد فلي وإن نقص فعلي