Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:10554[Chain 1] Abū al-Ḥasan b. ʿAbdān > Aḥmad b. ʿUbayd > ʿUbayd b. Sharīk > Yaḥyá b. ʿAbdullāh b. Bukayr > al-Layth > ʿUbaydullāh / Ibn Abū Jaʿfar [Chain 2] Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. Isḥāq > Aḥmad b. Salamah > Qutaybah b. Saʿīd > al-Layth > Ibn Abū Jaʿfar > al-Julāḥ Abū Kathīr > Ḥanash al-Ṣanʿānī > Faḍālah b. ʿUbayd

[Machine] We were with the Messenger of Allah ﷺ on the day of Khaybar, selling the gold ingots by weight for two dinars and three dirhams. The Messenger of Allah ﷺ said, "Do not sell gold for gold except if it is weighed like for like." The context of these narrations, along with the credibility of their narrators, indicate that these transactions were witnessed by many people. The Prophet ﷺ prohibited such transactions, so all of them were settled accordingly. Haneesh al-San'aani settled them separately. And Allah knows best.  

البيهقي:١٠٥٥٤أَخْبَرَنَاهُ أَبُو الْحَسَنِ بْنُ عَبْدَانَ أنا أَحْمَدُ بْنُ عُبَيْدٍ ثنا عُبَيْدُ بْنُ شَرِيكٍ ثنا يَحْيَى بْنُ عَبْدِ اللهِ بْنِ بُكَيْرٍ ثنا اللَّيْثُ حَدَّثَنِي عُبَيْدُ اللهِ يَعْنِي ابْنَ أَبِي جَعْفَرٍ ح وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو بَكْرِ بْنُ إِسْحَاقَ ثنا أَحْمَدُ بْنُ سَلَمَةَ ثنا قُتَيْبَةُ بْنُ سَعِيدٍ ثنا اللَّيْثُ عَنِ ابْنِ أَبِي جَعْفَرٍ عَنِ الْجُلَاحِ أَبِي كَثِيرٍ حَدَّثَنِي حَنَشٌ الصَّنْعَانِيُّ عَنْ فَضَالَةَ بْنِ عُبَيْدٍ قَالَ

كُنَّا مَعَ رَسُولِ اللهِ ﷺ يَوْمَ خَيْبَرَ نُبَايِعُ الْيَهُودَ الْوَقِيَّةَ الذَّهَبَ بِالدِّينَارَيْنِ وَالثَّلَاثَةِ فَقَالَ رَسُولُ اللهِ ﷺ لَا تَبِيعُوا الذَّهَبَ بِالذَّهَبِ إِلَّا وَزْنًا بِوَزْنٍ سِيَاقُ هَذِهِ الْأَحَادِيثِ مَعَ عَدَالَةِ رُوَاتِهَا تَدُلُّ عَلَى أَنَّهَا كَانَتْ بُيُوعًا شَهِدَهَا فَضَالَةُ كُلَّهَا وَالنَّبِيُّ ﷺ يَنْهَى عَنْهَا فَأَدَّاهَا كُلَّهَا وَحَنَشٌ الصَّنْعَانِيُّ أَدَّاهَا مُتَفَرِّقًا وَاللهُ أَعْلَمُ