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. And never was any harm done to him for which he took revenge on the one who did it, unless something of what Allah has made sacred was violated, in which case he would take retribution for the sake of Allah عز وجل. Some of them narrate more than others.

Muslim 6051

Sahih

و حدثنا أبو بكر بن أبي شيبة وابن نمير قالا حدثنا عبدة ووكيع ح و حدثنا أبو كريب حدثنا أبو معاوية كلهم عن هشام بهذا الإسناد يزيد بعضهم على بعض

مسلم 6051صحيح
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 6051
Muslim 6051