Abu Hurairah reported,

He heard the Messenger of Allah ﷺ say, "O Allah, whichever believing servant I have insulted, make that a means of drawing him closer to You on the Day of Resurrection."

Azami 9640

Sahih

عن أبي هريرة

أنه سمع رسول الله ﷺ يقول: اللهم فأيما عبد مؤمن سببته، فاجعل ذلك له قربة إليك يوم القيامة.

الأعظمي 9640صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Characteristics of the Prophet ﷺ
Section
One whom the Prophet ﷺ cursed or reviled while he was not deserving of that, it would be purification, reward, and mercy for him
Numbering
Jami al-Kamil 9640 (2nd edition)
Azami 9640