From Sahih Muslim (Hadith 4951):
It has been narrated on the authority of Mughira who said:I heard the Messenger of Allah (ﷺ) say: A group of people from my Umma will continue to be triumphant over the people until the Command of Allah overtakes them while they are still triumphant
Reference: Muslim 4951