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.
Sunan Abi Dawud Book 31, Hadith 22