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."
أخبرني أحمد بن يحيى الصوفي قال حدثنا أبو نعيم قال حدثنا يزيد بن مردانبة عن زياد بن علاقة
رأيت النبي ﷺ على المنبر يخطب الناس فقال إنه سيكون بعدي هنات وهنات فمن رأيتموه فارق الجماعة أو يريد يفرق أمر أمة محمد ﷺ كائنا من كان فاقتلوه فإن يد الله على الجماعة فإن الشيطان مع من فارق الجماعة يركض
Muslim reported it in the chapter "Amarah," in the section "The ruling on one who divides the affairs of the Muslims while they are united," hadith no. 1852, from the hadith of Ziyad, with this wording. It is also found in Kubra, hadith no. 3483.