Mishkat al-Masabih
Book 30, Hadith 296
Arabic hadith text
وَعَن مُعَاوِيَة قَالَ: سَمِعْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «لَا يَزَالُ مِنْ أُمَّتِي أُمَّةٌ قَائِمَةٌ بِأَمْرِ اللَّهِ لَا يَضُرُّهُمْ مَنْ خَذَلَهُمْ وَلَا مَنْ خَالَفَهُمْ حَتَّى يَأْتِيَ أَمْرُ اللَّهِ وَهُمْ عَلَى ذَلِكَ» . مُتَّفَقٌ عَلَيْهِ وَذُكِرَ حَدِيثُ أَنَسٍ «إِنَّ مِنْ عِبَادِ الله» فِي «كتاب الْقصاص»
Translation
Muʿawiya reported: I heard the Prophet ﷺ say: ‘There will always be a group from my community upholding Allah’s command. Those who abandon them or oppose them will not harm them, until Allah’s command comes while they remain in that state.’ Agreed upon. The hadith of Anas, ‘Among the servants of Allah...,’ is also mentioned in the Book of Retaliation.