I heard the Messenger of Allah ﷺ say, "I am only a human being, and I have stipulated to my Lord that any Muslim servant whom I curse or revile, let that be a means of purification and reward for him."
سمعت رسول الله ﷺ يقول: إنما أنا بشر، وإني اشترطت على ربي عز وجل: أي عبد من المسلمين سببته أو شتمته أن يكون ذلك له زكاة وأجرا.