Sahih Muslim , Book 12, Hadith 197 (In-Book)

It was narrated from Abu Sa'eed Al-Khudri that the Messenger of Allah said: "A group will secede at a time of division among the people, and they will be killed by the group that is closer to the truth."

حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا عَبْدُ الأَعْلَى، حَدَّثَنَا دَاوُدُ، عَنْ أَبِي نَضْرَةَ، عَنْ أَبِي، سَعِيدٍ الْخُدْرِيِّ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ تَمْرُقُ مَارِقَةٌ فِي فُرْقَةٍ مِنَ النَّاسِ فَيَلِي قَتْلَهُمْ أَوْلَى الطَّائِفَتَيْنِ بِالْحَقِّ ‏" ‏ ‏.‏

sunnah.com