Arfaja bin Shurayh reported,

I saw the Prophet ﷺ on the pulpit addressing the people. He said, "There will be troubles and disturbances after me. Whoever you see breaking away from the community or seeking to divide the affair of the nation of Muhammad ﷺ, whoever he may be, kill him, for the hand of Allah is over the community, and Satan runs alongside whoever breaks away from the community."

Nasai 4025

Sahih

أخبرني أحمد بن يحيى الصوفي قال حدثنا أبو نعيم قال حدثنا يزيد بن مردانبة عن زياد بن علاقة

عن عرفجة بن شريح الأشجعي قال

رأيت النبي ﷺ على المنبر يخطب الناس فقال إنه سيكون بعدي هنات وهنات فمن رأيتموه فارق الجماعة أو يريد يفرق أمر أمة محمد ﷺ كائنا من كان فاقتلوه فإن يد الله على الجماعة فإن الشيطان مع من فارق الجماعة يركض

النسائي 4025صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Prohibition of bloodshed
Chapter
Killing of those who separate from the community, and mention of the difference of opinion regarding Ziyad bin Alaqa from Arfaja concerning it
Numbering
Darussalam 4025
Nasai 4025