صحيح البخاري Sahih Bukhari كتاب الاعتصام بالكتاب والسنة The Book of Holding Fast To The Qur’An and The Sunna
بَابُ قَوْلِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لاَ تَزَالُ طَائِفَةٌ مِنْ أُمَّتِي ظَاهِرِينَ عَلَى الْحَقِّ يُقَاتِلُونَ». وَهُمْ أَهْلُ الْعِلْمِ:

(10) Chapter. The statement of the Prophet (p.b.u.h.), “A group of my followers will remain victorious in their struggle in the cause of the Truth.” Those are the religious learned men (i.e., Mujtahidun).

2 hadith
Hadith 7311
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى ، عَنْ إِسْمَاعِيلَ ، عَنْ قَيْسٍ ، عَنْ الْمُغِيرَةِ بْنِ شُعْبَةَ ، عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ : " لَا يَزَالُ طَائِفَةٌ مِنْ أُمَّتِي ظَاهِرِينَ حَتَّى يَأْتِيَهُمْ أَمْرُ اللَّهِ وَهُمْ ظَاهِرُونَ " .
Narrated Al-Mughira bin Shu`ba: The Prophet said, "A group of my follower swill remain predominant (victorious) till Allah's Order (the Hour) comes upon them while they are still predominant (victorious).
Hadith Reference Sahih Bukhari / The Book of Holding Fast To The Qur’An and The Sunna / Hadith: 7311
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 7312
حَدَّثَنَا إِسْمَاعِيلُ ، حَدَّثَنَا ابْنُ وَهْبٍ ، عَنْ يُونُسَ ، عَنْ ابْنِ شِهَابٍ ، أَخْبَرَنِي حُمَيْدٌ ، قَالَ : سَمِعْتُ مُعَاوِيَةَ بْنَ أَبِي سُفْيَانَ يَخْطُبُ قَالَ : سَمِعْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، يَقُولُ : " مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ ، وَإِنَّمَا أَنَا قَاسِمٌ وَيُعْطِي اللَّهُ وَلَنْ يَزَالَ أَمْرُ هَذِهِ الْأُمَّةِ مُسْتَقِيمًا حَتَّى تَقُومَ السَّاعَةُ ، أَوْ حَتَّى يَأْتِيَ أَمْرُ اللَّهِ " .
Narrated Humaid: I heard Muawiya bin Abi Sufyan delivering a sermon. He said, "I heard the Prophet saying, "If Allah wants to do a favor to somebody, He bestows on him, the gift of understanding the Qur'an and Sunna. I am but a distributor, and Allah is the Giver. The state of this nation will remain good till the Hour is established, or till Allah's Order comes."
Hadith Reference Sahih Bukhari / The Book of Holding Fast To The Qur’An and The Sunna / Hadith: 7312
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة