Jami` at-Tirmidhi, Volume 4, Book 31, Hadith 2265 (DarusSalam) ⓘ
Umm Salamah narrated that the Prophet(s.a.w) said: "Indeed there shall come upon you A'immah whom you like (what they do) and some (of what they do) you dislike. So whoever rejects, then he is innocent, and whoever loathes, then he is safe. But whoever is pleased and follows." It was said: "O Messenger of Allah! Shall we fight them?" He said: "No, as long as they offer Salat."
حَدَّثَنَا الْحَسَنُ بْنُ عَلِيٍّ الْخَلاَّلُ، حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، أَخْبَرَنَا هِشَامُ بْنُ حَسَّانَ، عَنِ الْحَسَنِ، عَنْ ضَبَّةَ بْنِ مِحْصَنٍ، عَنْ أُمِّ سَلَمَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " إِنَّهُ سَيَكُونُ عَلَيْكُمْ أَئِمَّةٌ تَعْرِفُونَ وَتُنْكِرُونَ فَمَنْ أَنْكَرَ فَقَدْ بَرِئَ وَمَنْ كَرِهَ فَقَدْ سَلِمَ وَلَكِنْ مَنْ رَضِيَ وَتَابَعَ " . فَقِيلَ يَا رَسُولَ اللَّهِ أَفَلاَ نُقَاتِلُهُمْ قَالَ " لاَ مَا صَلَّوْا " . قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ .
also referenced under: Hadith 2265 (Reference) & Book 33, Hadith 108 (In-Book)