Sahih Muslim, Book 27, Hadith 78 (Muslim 4292)

Abu Huraira reported Allah's Apostle (ﷺ) as saying:

In case the slave is owned by two persons, and one of them emancipates him, he will guarantee (his full freedom).