Sure Al-Hujuraat

49:9

وَإِن طَآئِفَتَانِ مِنَ ٱلْمُؤْمِنِينَ ٱقْتَتَلُوا۟ فَأَصْلِحُوا۟ بَيْنَهُمَا ۖ فَإِنۢ بَغَتْ إِحْدَىٰهُمَا عَلَى ٱلْأُخْرَىٰ فَقَٰتِلُوا۟ ٱلَّتِى تَبْغِى حَتَّىٰ تَفِىٓءَ إِلَىٰٓ أَمْرِ ٱللَّهِ ۚ فَإِن فَآءَتْ فَأَصْلِحُوا۟ بَيْنَهُمَا بِٱلْعَدْلِ وَأَقْسِطُوٓا۟ ۖ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُقْسِطِينَ

Und wenn zwei Gruppen von den Gläubigen miteinander kämpfen, so stiftet Frieden zwischen ihnen. Wenn die eine von ihnen gegen die andere widerrechtlich vorgeht, dann kämpft gegen diejenige, die widerrechtlich vorgeht, bis sie zu Allahs Befehl zurückkehrt. Wenn sie zurückkehrt, dann stiftet Frieden zwischen ihnen nach Gerechtigkeit und handelt dabei gerecht. Allah liebt ja die Gerechten.

Tafsir 49:9

O believers! If two groups of believers quarrel with one another, then reconcile between them by inviting them to let the law of Allah be the judgement between them. Then, if one of the two reject the reconciliation and transgresses, fight the transgressing group until it returns to accepting the command of Allah. If it returns, reconcile between the two groups with fairness and justice. And be fair in your judgement between them, indeed, Allah loves those who are fair in their judgement.