Muawiya bin Suwayd reported,

I slapped a servant of ours, then ran away. I came back just before the noon prayer and prayed behind my father. He summoned the servant and summoned me, then said, "Take retaliation from him."But the servant pardoned me. Then my father said, "In the time of the Messenger of Allah ﷺ, we, the family of Muqarrin, had only one servant girl. One of us slapped her, and news of this reached the Prophet ﷺ. He said, 'Set her free.'They said, 'They have no servant other than her.'He said, 'Then let them keep her in service, and when they no longer need her, let them release her.'"

Azami 6170

Sahih

عن معاوية بن سويد قال

لطمت مولى لنا فهربت، ثم جئت قبيل الظهر، فصليت خلف أبي، فدعاه ودعاني، ثم قال: امتثل منه. فعفا، ثم قال: كنا بنى مقرن على عهد رسول الله ﷺ ليس لنا إلا خادم واحدة، فلطمها أحدنا، فبلغ ذلك النبي ﷺ، فقال: أعتقوها. قالوا: ليس لهم خادم غيرها. قال: فليستخدموها، فإذا استغنوا عنها، فليخلوا سبيلها.

الأعظمي 6170صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Emancipation of slaves
Section
Expiation for one who wrongs his slave is to free him
Numbering
Jami al-Kamil 6170 (2nd edition)
Azami 6170