Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:49:9

And if two factions among the believers should fight, then make settlement between the two. But if one of them oppresses the other, then fight against the one that oppresses until it returns to the ordinance of Allah. And if it returns, then make settlement between them in justice and act justly. Indeed, Allah loves those who act justly.  

And if two parties of believers (in tā’ifatāni mina’l-mu’minīna ... ˹to the end of˺ the verse, was revealed regarding a particular incident where the Prophet (s) was riding a donkey and happened to pass by Ibn Ubayy; the donkey urinated and so Ibn Ubayy held his nose, whereupon ˹‘Abd Allāh˺ Ibn Rawāhā said, ‘By God, the smell of the donkey’s urine is sweeter-smelling than your musk. Fighting then ensued between the two clans with fists, sandals and palm branches ˹being thrown about˺) fall to fighting (iqtatalū: the plural is used on account of the ˹plural˺ import, for each party is made up of several individuals; a variant reading has ˹the dual form˺ iqtatalatā), make peace between them (baynahumā: the dual here takes into account the actual ˹dual˺ form ˹of tā’ifatān, ‘two parties’˺). And if one of them aggresses against the other, fight the one which aggresses until it returns to God’s ordinance, ˹to˺ the truth. Then, if it returns, reconcile them, fairly, and act justly. Surely God loves the just.
القرآن:٤٩:٩

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

{وإن طائفتان من المؤمنين} الآية، نزلت في قضية هي أن النبي ﷺ ركب حمارا ومر على ابن أبيّ فبال الحمار فسد ابن أبيّ أنفه فقال ابن رواحة: والله لبول حماره أطيب ريحا من مسكك فكان بين قوميهما ضرب بالأيدي والنعال والسعف {اقتتلوا} جمع نظرا إلى المعنى لأن كل طائفة جماعة، وقرئ اقتتلتا {فأصلحوا بينهما} ثنى نظرا إلى اللفظ {فإن بغت} تعدت {إحداهما على الأخرى فقاتلوا التي تبغي حتى تفيء} ترجع {إلى أمر الله} الحق {فإن فاءت فأصلحوا بينهما بالعدل} بالإنصاف {وأقسطوا} اعدلوا {إن الله يحب المقسطين}.

See similar narrations below:

Collected by Ḥākim, Bayhaqī

The Quranic methodology of reconciliation between two believing groups is most valued by this Ummah

hakim:2664Abū Bakr Muḥammad b. al-Muʾammal b. al-Ḥasan b. ʿĪsá > al-Faḍl b. Muḥammad al-Shaʿrānī > Ismāʿīl b. Abū Ūways from my father > Muḥammad b. Abū Bakr b. Muḥammad b. ʿAmr b. Ḥazm from his father > ʿAmrah b. ʿAbd al-Raḥman > ʿĀʾishah

I have not seen anything more desired/valued by this Ummah that is like the āyah: "And if two factions among the believers should fight, then make settlement between the two. But if one of them oppresses the other, then fight against the one that oppresses until it returns to the ordinance of Allah." (Ḥujurāt 49:9)  

This ḥadīth is Ṣaḥīḥ according to the criteria of Muslim but he did not collect it.
الحاكم:٢٦٦٤أَخْبَرَنَا أَبُو بَكْرٍ مُحَمَّدُ بْنُ الْمُؤَمَّلِ بْنِ الْحَسَنِ بْنِ عِيسَى ثنا الْفَضْلُ بْنُ مُحَمَّدٍ الشَّعْرَانِيُّ ثنا إِسْمَاعِيلُ بْنُ أَبِي أُوَيْسٍ ثنا أَبِي عَنْ مُحَمَّدِ بْنِ أَبِي بَكْرِ بْنِ مُحَمَّدِ بْنِ عَمْرِو بْنِ حَزْمٍ عَنْ أَبِيهِ عَنْ عَمْرَةَ بِنْتِ عَبْدِ الرَّحْمَنِ عَنْ عَائِشَةَ أَنَّهَا قَالَتْ

مَا رَأَيْتُ مِثْلَ مَا رَغِبَتْ عَنْهُ هَذِهِ الْأُمَّةُ مِنْ هَذِهِ الْآيَةِ {وَإِنْ طَائِفَتَانِ مِنَ الْمُؤْمِنِينَ اقْتَتَلُوا فَأَصْلِحُوا بَيْنَهُمَا فَإِنْ بَغَتْ إِحْدَاهُمَا عَلَى الْأُخْرَى فَقَاتِلُوا الَّتِي تَبْغِي حَتَّى تَفِيءَ إِلَى أَمْرِ اللَّهِ} [الحجرات 9]  

«هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ مُسْلِمٍ وَلَمْ يُخَرِّجَاهُ»

The Quranic methodology of reconciliation between two believing groups is most desired by the Ummah

bayhaqi:16707Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr Muḥammad b. al-Muʾammal b. al-Ḥasan b. ʿĪsá > al-Faḍl b. Muḥammad al-Shaʿrānī > Ismāʿīl b. Abū Ūways from my father > Muḥammad b. Abū Bakr b. Muḥammad b. ʿAmr b. Ḥazm from his father > ʿAmrah b. ʿAbd al-Raḥman > ʿĀʾishah

I have not seen anything more desired/valued by this Ummah that is like the āyah: "And if two factions among the believers should fight, then make settlement between the two. But if one of them oppresses the other, then fight against the one that oppresses until it returns to the ordinance of Allah." (Ḥujurāt 49:9)  

البيهقي:١٦٧٠٧وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أَنْبَأَ أَبُو بَكْرٍ مُحَمَّدُ بْنُ الْمُؤَمَّلِ بْنِ الْحَسَنِ بْنِ عِيسَى ثَنَا الْفَضْلُ بْنُ مُحَمَّدٍ الشَّعْرَانِيُّ ثَنَا إِسْمَاعِيلُ بْنُ أَبِي أُوَيْسٍ ثَنَا أَبِي عَنْ مُحَمَّدِ بْنِ أَبِي بَكْرِ بْنِ مُحَمَّدِ بْنِ عَمْرِو بْنِ حَزْمٍ عَنْ أَبِيهِ عَنْ عَمْرَةَ بِنْتِ عَبْدِ الرَّحْمَنِ عَنْ عَائِشَةَ ؓ أَنَّهَا قَالَتْ

مَا رَأَيْتُ مِثْلَ مَا رَغِبَتْ عَنْهُ هَذِهِ الْأُمَّةُ مِنْ هَذِهِ الْآيَةِ {وَإِنْ طَائِفَتَانِ مِنَ الْمُؤْمِنِينَ اقْتَتَلُوا فَأَصْلِحُوا بَيْنَهُمَا فَإِنْ بَغَتْ إِحْدَاهُمَا عَلَى الْأُخْرَى فَقَاتِلُوا الَّتِي تَبْغِي حَتَّى تَفِيءَ إِلَى أَمْرِ اللهِ} [الحجرات 9]