Sahih Muslim 1037 c
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لاَ تَزَالُ طَائِفَةٌ مِنْ أُمَّتِي قَائِمَةً بِأَمْرِ اللَّهِ لاَ يَضُرُّهُمْ مَنْ خَذَلَهُمْ أَوْ خَالَفَهُمْ حَتَّى يَأْتِيَ أَمْرُ اللَّهِ وَهُمْ ظَاهِرُونَ عَلَى النَّاسِ "
It his been narrated on the authority of Umair b. Umm Hani who said:
I heard Mu'awiya say (while delivering a sermon from the pulpit) that he heard the Messenger of Allah (ﷺ) say: A group of people from my Umma will continue to obey Allah's Command, and those who desert or oppose them shall not be able to do them any harm. They will be dominating the peeple until Allah's Command is executed (i.e. Resurrection is established).
Full reference and source
Sahih Muslim 1037 c In-book : Book 33, Hadith 250 USC-MSA web (English) : Book 20, Hadith 4719 (deprecated)
View source on Sunnah.com (opens in a new tab)