The Prophet ﷺ forbade muzabanah. Muzabanah means selling fruit by a fixed measure on the terms, "If it turns out to be more, it is mine, and if it falls short, the loss is on me."
حدثنا أبو النعمان حدثنا حماد بن زيد عن أيوب عن نافع
أن النبي ﷺ نهى عن المزابنة قال والمزابنة أن يبيع الثمر بكيل إن زاد فلي وإن نقص فعلي