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 matter 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 عز وجل.

Azami 9512

Sahih

عن عائشة قالت

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

الأعظمي 9512صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Character of the Prophet ﷺ
Section
Messenger of Allah ﷺ never struck anyone except in the way of Allah
Numbering
Jami al-Kamil 9512 (2nd edition)
Azami 9512