the Messenger of Allah (ﷺ) ruled that what a slave earns belongs to his guarantor.
Sunan Ibn Majah Book 12, Hadith 106