The great majority Sunan Ibn Majah 3950

Arabic hadith text
حَدَّثَنَا الْعَبَّاسُ بْنُ عُثْمَانَ الدِّمَشْقِيُّ، حَدَّثَنَا الْوَلِيدُ بْنُ مُسْلِمٍ، حَدَّثَنَا مُعَانُ بْنُ رِفَاعَةَ السَّلاَمِيُّ، حَدَّثَنِي أَبُو خَلَفٍ الأَعْمَى، قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ، يَقُولُ سَمِعْتُ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ يَقُولُ ‏"‏ إِنَّ أُمَّتِي لَنْ تَجْتَمِعَ عَلَى ضَلاَلَةٍ فَإِذَا رَأَيْتُمُ اخْتِلاَفًا فَعَلَيْكُمْ بِالسَّوَادِ الأَعْظَمِ ‏"
Translation
Anas bin Malik said

“I heard the Messenger of Allah (ﷺ) say: ‘Mynation will not unite on misguidance, so if you see them differing,follow the great majority.’”