Al-An'am 6:159
إِنَّ ٱلَّذِينَ فَرَّقُوا۟ دِينَهُمْ وَكَانُوا۟ شِيَعًا لَّسْتَ مِنْهُمْ فِى شَىْءٍ ۚ إِنَّمَآ أَمْرُهُمْ إِلَى ٱللَّهِ ثُمَّ يُنَبِّئُهُم بِمَا كَانُوا۟ يَفْعَلُونَ
Inna allatheena farraqoo deenahumwakanoo shiyaAAan lasta minhum fee shay-in innamaamruhum ila Allahi thumma yunabbi-ohum bimakanoo yafAAaloon
Indeed, those who have divided their religion and become sects - you, [O Muḥammad], are not [associated] with them in anything. Their affair is only [left] to Allāh; then He will inform them about what they used to do.
Surely, those who have made divisions in their religion and turned into factions, you have nothing to do with them. Their case rests with Allah alone; then He will tell them what they have been doing.