Jami` at-Tirmidhi, Book 49, Hadith 4236 (In-Book)

Narrated 'Abdullah bin Mughaffal: that the Messenger of Allah said: "(Fear) Allah! (Fear) Allah regarding my Companions! Do not make them objects of insults after me. Whoever loves them, it is out of love of me that he loves them. And whoever hates them, it is out of hatred for me that he hates them. And whoever harms them, he has harmed me, and whoever harms me, he has offended Allah, and whoever offends Allah, [then] he shall soon be punished."

حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، حَدَّثَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ بْنِ سَعْدٍ، حَدَّثَنَا عَبِيدَةُ بْنُ أَبِي رَائِطَةَ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ زِيَادٍ، عَنْ عَبْدِ اللَّهِ بْنِ مُغَفَّلٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ اللَّهَ اللَّهَ فِي أَصْحَابِي اللَّهَ اللَّهَ فِي أَصْحَابِي لاَ تَتَّخِذُوهُمْ غَرَضًا بَعْدِي فَمَنْ أَحَبَّهُمْ فَبِحُبِّي أَحَبَّهُمْ وَمَنْ أَبْغَضَهُمْ فَبِبُغْضِي أَبْغَضَهُمْ وَمَنْ آذَاهُمْ فَقَدْ آذَانِي وَمَنْ آذَانِي فَقَدْ آذَى اللَّهَ وَمَنْ آذَى اللَّهَ فَيُوشِكُ أَنْ يَأْخُذَهُ ‏" ‏ ‏.‏ قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ لاَ نَعْرِفُهُ إِلاَّ مِنْ هَذَا الْوَجْهِ ‏.‏

sunnah.com