'Aishah (May Allah be pleased with her) reported:
Messenger of Allah (ﷺ) never hit anything with his hand neither a servant nor a woman but of course, he did fight in the Cause of Allah. He never took revenge upon anyone for the wrong done to him, but of course, he exacted retribution for the sake of Allah in case the Injunctions of Allah about unlawful acts were violated.[Muslim].
Arabic/English book reference: Book 1, Hadith 644