The Messenger of Allah ﷺ forbade muhaqalah and muzabanah. Abu Abdul-Rahman said this another time.
أخبرنا عمرو بن علي قال حدثنا أبو عاصم قال حدثنا عثمان بن مرة قال سألت القاسم عن المزارعة فحدث
أن رسول الله ﷺ نهى عن المحاقلة والمزابنة قال أبو عبد الرحمن مرة أخرى
[Its isnad is hasan]. It is in Al-Kubra, hadith: 4614. Qasim is Ibn Muhammad bin Abu Bakr Siddiq, and Abu Asim is Dahhak bin Makhlad.