Talq and I went with Ibn Umar to visit Abu Saeed, who told us that the Messenger of Allah ﷺ said, "These two ears of mine heard him say, 'Do not sell gold for gold except like for like, and do not sell silver for silver except like for like. None of it should exceed the other, and do not sell what is absent for what is present.'"
حدثنا أحمد بن منيع أخبرنا حسين بن محمد أخبرنا شيبان عن يحيى بن أبي كثير
انطلقت أنا وابن عمر إلى أبي سعيد فحدثنا أن رسول الله ﷺ قال سمعته أذناي هاتان يقول لا تبيعوا الذهب بالذهب إلا مثلا بمثل والفضة بالفضة إلا مثلا بمثل لا يشف بعضه على بعض ولا تبيعوا منه غائبا بناجز
[Its chain of transmission is sahih]. Ahmad narrated it (3/73) from the hadith of Yahya bin Abu Kathir, and Muslim (no. 1584) from the hadith of Nafi, and Bukhari (no. 2176) through another route from Ibn Umar, and (no. 2177) from the hadith of Nafi with the same wording.On this subject there are also narrations from Abu Bakr [Bazzar, Kashf Astar 2/109, no. 1318], and Umar [to come, no. 1243], and Uthman [Muslim, no. 1585], and Abu Hurairah [Muslim, no. 1588], and Hisham bin Amir [Ahmad 4/19, 20], and Bara [Bukhari, nos. 2180, 2181, and Muslim, no. 1589], and Zayd bin Arqam [Bukhari, nos. 2180, 2181, and Muslim, no. 1589, and Ahmad 4/368, 372], and Fadala bin Ubayd [Muslim, no. 1591], and Abu Bakra [Bukhari, no. 2182, and Muslim, no. 1590], and Ibn Umar [to come, no. 1242], and Abu Darda [Malik in Muwatta 2/634, and Nasai, no. 4576], and Bilal [Darimi, no. 2579].