Jabir b. Abdullah reported Allah's Messenger (ﷺ) as saying:
I am a human being and I have made this term with my Lord, the Exalted and Glorious: For any servant amongst Muslims whom I curse or scold, make that a source of purity and reward. This hadith has been narrated on the authority of Ibn Juraij with the same chain of transmitters.
Reference: Sahih Muslim 2602 c, d In-book : Book 45, Hadith 123 USC-MSA web (English) : Book 32, Hadith 6296 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.