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

Azami 14017

Sahih

عن عائشة قالت

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

الأعظمي 14017صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Noble character
Section
Preferable is to avoid striking if the goal can be achieved without it
Numbering
Jami al-Kamil 14017 (2nd edition)
Azami 14017