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 .
ما ضرب رسول الله ﷺ شيئا قط بيده، ولا امرأة، ولا خادما، إلا أن يجاهد في سبيل الله، وما نيل منه شيء قط، فينتقم من صاحبه إلا أن ينتهك شيء من محارم الله فينتقم الله عز وجل.
Muslim narrated it in the Book of Virtues (79:2328) from Abu Kurayb, who said, Abu Usama narrated to us, from Hisham, from his father, from Ayesha, who said, and she mentioned it.