Hadithcore
Mishkat al-Masabih, 3536

Abu Sa'id al-Khudri reported God’s Messenger as saying, “My people will be in two sections from among whom a seceding party will go out, and those who are nearest to the truth will undertake the killing of them.” Muslim transmitted it.

وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «يَكُونُ أُمَّتِي فِرْقَتَيْنِ فَيَخْرُجُ مِنْ بَيْنِهِمَا مَارِقَةٌ يَلِي قَتْلَهُمْ أولاهم بِالْحَقِّ» . رَوَاهُ مُسلم

References1 variant
In-Book Reference
Book 16, Hadith 83