Sahih Bukhari
Manumission of Slaves
Volume: 003 / Book Number: 046 / Hadith Number: 697
Narrated Ibn 'Umar:
The Prophet said, "Whoever manumits a slave owned by two masters, should manumit him completely (not partially) if he is rich after having its price evaluated."