Sayyiduna Jabir bin Abdullah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Whoever sells a slave who has wealth, the wealth belongs to him (the seller) and the slave's debt is also his responsibility, unless the buyer stipulates it as a condition; and whoever pollinates date palms and then sells them after pollination, the fruit is his, unless the buyer stipulates it as a condition." If this hadith is sound, then what is meant by the slave is a slave who has been permitted to trade; his master will take his wealth and will also pay off the debt.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 11004
Hadith Gradingمحدثین:مسند احمد 3/309
Hadith Takhrij«مسند احمد 3/309 ۔ سنن نسائي حديث 4964»