Ayesha reported,

Two men came to visit the Prophet ﷺ, and he spoke harshly to them and rebuked them.She said, I asked, "Messenger of Allah, no one else who has been in your presence has come away with what these two came away with."He replied, "Don't you know what I have promised my Lord عز وجل? I said, 'O Allah, any believer whom I rebuke, strike, or curse, make that for him a means of forgiveness, well-being, and such and such.'"

Ahmad 24179

Sahih

حدثنا أبو معاوية وابن نمير المعنى قالا حدثنا الأعمش عن مسلم عن مسروق

عن عائشة قالت

دخل على النبي ﷺ رجلان فأغلظ لهما وسبهما قالت فقلت يا رسول الله لمن أصاب منك خيرا ما أصاب هذان منك خيرا قالت فقال أوما علمت ما عاهدت عليه ربي عز وجل قال قلت اللهم أيما مؤمن سببته أو جلدته أو لعنته فاجعلها له مغفرة وعافية وكذا وكذا

أحمد 24179صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Ayesha bint Siddiq
Numbering
Darussalam 24179
Ahmad 24179