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