The Prophet ﷺ said: If a man emancipates a slave shared by him with another man, his emancipation rests with him (who emancipated his share). This is the version of Ibn Suwaid.
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ أَعْتَقَ مَمْلُوكًا بَيْنَهُ وَبَيْنَ آخَرَ فَعَلَيْهِ خَلاَصُهُ وَهَذَا لَفْظُ ابْنِ سُوَيْدٍ