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.
darimi:3176Hārūn b. Muʿāwiyah > Abū Sufyān > Maʿmar > Qatādah

[Machine] If one of the two desks bought the other, this one is from its master, and this one is from its master, so the sale is for the first (desk). The people of the town say loyalty is to the seller's master, and they say this purchase is only for the desks, so loyalty is to their master.  

الدارمي:٣١٧٦حَدَّثَنَا هَارُونُ بْنُ مُعَاوِيَةَ عَنْ أَبِي سُفْيَانَ عَنْ مَعْمَرٍ عَنْ قَتَادَةَ قَالَ

إِذَا ابْتَاعَ الْمُكَاتَبَانِ أَحَدُهُمَا الْآخَرَ هَذَا هَذَا مِنْ سَيِّدِهِ وَهَذَا هَذَا مِنْ سَيِّدِهِ فَالْبَيْعُ لِلْأَوَّلِ وَيَقُولُ أَهْلُ الْمَدِينَةِ الْوَلَاءُ لِسَيِّدِ الْبَائِعِ وَيَقُولُونَ إِنَّمَا ابْتَاعَ هَذَا مَا عَلَى الْمُكَاتَبِ فَالْوَلَاءُ لِلسَّيِّدِ