كتاب الجهاد والسير
32  
The Book of Jihad and Expeditions
(38)
Chapter: The intense wrath of Allah towards the one who was killed by the messenger of Allah (saws)
(38)
باب اشْتِدَادِ غَضَبِ اللَّهِ عَلَى مَنْ قَتَلَهُ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏‏
Sahih Muslim 1793

It has been narrated by Hammam b. Munabbih who said:

This is what has been related to us by Abu Huraira from the Messenger of Allah (ﷺ). (With this introduction) he narrated a number of traditions. One of these was that the Messenger of Allah (ﷺ) said: Great is the wrath of Allah upon a people who have done this to the Messenger of Allah (ﷺ), and he was at that time pointing to his front teeth. The Messenger of Allah (ﷺ) also said: Great is the wrath of Allah upon a person who has been killed by the Messenger of Allah (ﷺ) in the way of Allah, the Exalted and Glorious.
حَدَّثَنَا مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، حَدَّثَنَا مَعْمَرٌ، عَنْ هَمَّامِ بْنِ مُنَبِّهٍ، قَالَ هَذَا مَا حَدَّثَنَا أَبُو هُرَيْرَةَ، عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم فَذَكَرَ أَحَادِيثَ مِنْهَا وَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ اشْتَدَّ غَضَبُ اللَّهِ عَلَى قَوْمٍ فَعَلُوا هَذَا بِرَسُولِ اللَّهِ صلى الله عليه وسلم ‏"‏ ‏.‏ وَهُوَ حِينَئِذٍ يُشِيرُ إِلَى رَبَاعِيَتِهِ وَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ اشْتَدَّ غَضَبُ اللَّهِ عَلَى رَجُلٍ يَقْتُلُهُ رَسُولُ اللَّهِ فِي سَبِيلِ اللَّهِ عَزَّ وَجَلَّ ‏"‏ ‏.‏
Reference : Sahih Muslim 1793
In-book reference : Book 32, Hadith 130
USC-MSA web (English) reference : Book 19, Hadith 4420
  (deprecated numbering scheme)