From Sahih Muslim (Hadith 2458):
Abu Sa'id al-Khudri reported that the Messenger of Allah (ﷺ) said:A group would secede itself (from the Ummah) when there would be dissension among the Muslims. Out of the two groups who would be nearer the truth would kill them
Reference: Muslim 2458