It is narrated from Sayyiduna Zayd bin Thabit (may Allah be pleased with him) that he said: "When a mukatab becomes bankrupt, the debt will be given priority in payment." Imam al-Hakim Abu Abdullah al-Hafiz and Imam al-Bayhaqi in his Sunan recorded this narration. Imam al-Shafi'i (may Allah be pleased with him) said: We adopt this view. So when a mukatab dies while owing debt, payment will begin with the debts owed to people, because he died as a slave and his contract of manumission has become void; therefore the master has no debt (in the form of the contract payment) remaining against him, and whatever wealth remains will belong to the master.