From Sahih Muslim (Hadith 2459):
Abu Sa'id al-Khudri reported Allah's Messenger (ﷺ) as saying:There would be two groups in my Ummah, and there would emerge another group (seceding itself from both of them), and the party nearer to the truth among the two would kill them (the group of the Khawarij)
Reference: Muslim 2459