The Messenger of Allah ﷺ forbade muhaqalah and muzabanah. Muhaqalah is the exchange of wheat for wheat.
حدثنا عبد الرحمن حدثنا سفيان عن سعد بن إبراهيم عن عمر بن أبي سلمة عن أبيه
نهى رسول الله ﷺ عن المحاقلة والمزابنة والمحاقلة البر بالبر
Its isnad is sahih. It occurred previously at and it is found in the Six Books with similar wording.