The Messenger of Allah ﷺ said, "A group of my nation will remain upon the truth, granted victory. Those who oppose them will not harm them until the command of Allah comes."
حدثنا هشام بن عمار حدثنا محمد بن شعيب حدثنا سعيد بن بشير عن قتادة عن أبي قلابة عن أبي أسماء الرحبي
أن رسول الله ﷺ قال لا تزال طائفة من أمتي على الحق منصورين لا يضرهم من خالفهم حتى يأتي أمر الله عز وجل
Muslim narrated it in the Book of Leadership, chapter "His saying, 'A group will continue to...'" etc., hadith no. 1920, from the hadith of Ayub, from Abu Qilaba, through this same chain.