Sunan Abi Dawud, Book 31, Hadith 22 (Abu Dawud 3948)
Ibn 'Umar reported the Prophet (ﷺ) as saying:
If a man is shared by two men, and one of them emancipates his share, a price of the slave will be fixed, not more or less, and he will be emancipated by him in case he is rich.