Ayesha reported,

The Messenger of Allah ﷺ never struck anything with his hand, neither a woman nor a servant, except when fighting in the cause of Allah. He was never wronged in any way and then took revenge on the one who wronged him, unless something sacred to Allah was violated, in which case he would take retribution for the sake of Allah عز وجل.

Muslim 6050

Sahih

حدثناه أبو كريب حدثنا أبو أسامة عن هشام عن أبيه

عن عائشة قالت

ما ضرب رسول الله ﷺ شيئا قط بيده ولا امرأة ولا خادما إلا أن يجاهد في سبيل الله وما نيل منه شيء قط فينتقم من صاحبه إلا أن ينتهك شيء من محارم الله فينتقم لله عز وجل

مسلم 6050صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues
Chapter
Distancing himself ﷺ from sins, choosing the easiest of permissible matters, and his vengeance for Allah
Numbering
Darussalam 6050
Muslim 6050