Abu Masud Uqba bin Amr reported,

While I was beating a slave of mine, I suddenly heard a voice behind me saying, "Know, Abu Masud," three times. I turned around, and there was the Messenger of Allah ﷺ.He said, "By Allah, Allah has more power over you than you have over this boy."I then swore that I would never beat a slave again.

Ahmad 17087

Sahih

حدثنا عبد الرزاق قال حدثنا سفيان عن الأعمش عن إبراهيم التيمي عن أبيه

عن أبي مسعود الأنصاري قال

بينا أنا أضرب غلاما لي إذ سمعت صوتا من ورائي اعلم أبا مسعود ثلاثا فالتفت فإذا رسول الله ﷺ فقال والله لله أقدر عليك منك على هذا قال فحلفت أن لا أضرب مملوكا أبدا

أحمد 17087صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Masud Badri Ansari
Numbering
Darussalam 17087
Ahmad 17087