Dalil

Quran Al-Mu'minun 23:53

فَتَقَطَّعُوٓاْ أَمۡرَهُم بَيۡنَهُمۡ زُبُرٗاۖ كُلُّ حِزۡبِۭ بِمَا لَدَيۡهِمۡ فَرِحُونَ

Translation

But they [i.e., the people] divided their religion among them into portions [i.e., sects] - each faction, in what it has, rejoicing.