Sunan Abi Dawud, Book 41, Hadith 88 (Abu Dawud 4583)

Narrated Abdullah ibn Abbas:

The Messenger of Allah (ﷺ) gave judgment about the slave who had made an agreement to purchase his freedom (mukatab) and he had been killed that blood-wit is paid for him at the rate paid for a free man so far as he has paid the purchase money, and at the rate paid for a slave as the remainder is concerned.