Anas ibn Malik reported: I heard the Messenger of Allah, peace and blessings be upon him, say, "Verily, my nation will not agree upon misguidance, so if you see differences then follow the greatest majority."
Source: Sunan Ibn Majah 3950
Grade: Sahih (authentic) according to As-Suyuti
أَنَسَ بْنَ مَالِكٍ يَقُولُ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ إِنَّ أُمَّتِي لَا تَجْتَمِعُ عَلَى ضَلَالَةٍ فَإِذَا رَأَيْتُمْ اخْتِلَافًا فَعَلَيْكُمْ بِالسَّوَادِ الْأَعْظَمِ
3950 سنن ابن ماجه كِتَاب الْفِتَنِ إن أمتي لا تجتمع على ضلالة فإذا رأيتم اختلافا فعليكم بالسواد الأعظم
المحدث السيوطي خلاصة حكم المحدث صحيح