كتاب البر والصلة والآداب
45  
The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
(25)
Chapter: Whomever Is Cursed, Reviled Or Prayed Against By The Prophet (SAW) When He Does Not Deserve That, It Will Be Purification, Reward And Mercy For Him
(25)
باب مَنْ لَعَنَهُ النَّبِيُّ صلى الله عليه وسلم أَوْ سَبَّهُ أَوْ دَعَا عَلَيْهِ
Sahih Muslim 2602 a

Jabir reported Allah's Apostle (ﷺ) a hadith like it but with a slight variation of wording.

وَحَدَّثَنَا ابْنُ نُمَيْرٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا الأَعْمَشُ، عَنْ أَبِي سُفْيَانَ، عَنْ جَابِرٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم مِثْلَهُ إِلاَّ أَنَّ فِيهِ ‏ "‏ زَكَاةً وَأَجْرًا ‏"‏ ‏.‏
Reference : Sahih Muslim 2602a
In-book reference : Book 45, Hadith 115
USC-MSA web (English) reference : Book 32, Hadith 6288
  (deprecated numbering scheme)