I heard the Messenger of Allah ﷺ say, "O Allah, Muhammad is only a human being who becomes angry as humans become angry. I have taken a covenant with You that You will not break with me. So whichever believer I have harmed, insulted, or flogged, make it an expiation for him and a means of nearness by which he draws close to You on the Day of Resurrection."
حدثنا حجاج قال حدثنا ليث قال حدثني سعيد بن أبي سعيد عن سالم مولى النصريين قال سمعت
سمعت رسول الله ﷺ يقول اللهم إنما محمد بشر يغضب كما يغضب البشر وإني قد اتخذت عندك عهدا لن تخلفنيه فأيما مؤمن آذيته أو شتمته أو جلدته فاجعلها له كفارة وقربة تقربه بها إليك يوم القيامة