The Messenger of Allah ﷺ said, "Gold for gold, silver for silver, dates for dates, wheat for wheat, barley for barley, and salt for salt, equal for equal, like for like. Whoever gives more or asks for more has engaged in usury. The one who takes and the one who gives are equally guilty."
حدثنا يزيد حدثنا سليمان بن علي حدثنا أبو المتوكل الناجي
قال رسول الله ﷺ الذهب بالذهب والفضة بالفضة والتمر بالتمر والبر بالبر والشعير بالشعير والملح بالملح سواء بسواء مثل بمثل من زاد أو استزاد فقد أربى الآخذ والمعطي سواء
Its chain of transmission is sahih. Sulayman bin Ali is al-Rubai, and the hadith has been mentioned many times before.