Sure Al-An'aam

6:159

إِنَّ ٱلَّذِينَ فَرَّقُوا۟ دِينَهُمْ وَكَانُوا۟ شِيَعًۭا لَّسْتَ مِنْهُمْ فِى شَىْءٍ ۚ إِنَّمَآ أَمْرُهُمْ إِلَى ٱللَّهِ ثُمَّ يُنَبِّئُهُم بِمَا كَانُوا۟ يَفْعَلُونَ

Gewiß, mit denjenigen, die ihre Religion spalteten und zu Lagern geworden sind, hast du nichts gemein. Ihre Angelegenheit steht (allein) bei Allah. Hierauf wird Er ihnen kundtun, was sie zu tun pflegten.

Tafsir 6:159

O Messenger, have nothing to do with those Jews and Christians who divided their religion, by taking part of it and leaving out another part, and turned into various sects. You are innocent of the misguidance that they adopt. Your duty is only to warn them. Their matter is entrusted to Allah and then, on the Day of Judgement, He will tell them about what they used to do in the world and repay them for that.