Sunan Ibn Majah, Volume 3, Book 13, Hadith 2344 (DarusSalam) ⓘ
It was narrated from ('Uqbah bin 'Amir or) Samurah bin Jundub that : the Messenger of Allah said: “If a product is sold to two men, it is for the one who was first.”
حَدَّثَنَا يَحْيَى بْنُ حَكِيمٍ، حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا هَمَّامٌ، عَنْ قَتَادَةَ، عَنِ الْحَسَنِ، عَنْ سَمُرَةَ بْنِ جُنْدُبٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " إِذَا بِيعَ الْبَيْعُ مِنْ رَجُلَيْنِ فَالْبَيْعُ لِلأَوَّلِ " . قَالَ أَبُو الْوَلِيدِ فِي هَذَا الْحَدِيثِ إِبْطَالُ الْخَلاَصِ .
also referenced under: Hadith 2344 (Reference) & Book 13, Hadith 37 (In-Book)