It was narrated from Aishah that :
the Messenger of Allah (ﷺ) ruled that what a slave earns belongs to his guarantor. (IT)
English reference (IT): Vol. 3, Book 12, Hadith 2242 (IT)
Arabic reference (IT): Book 12, Hadith 2327 (IT)