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.
bukhari:7340Musaddad > ʿAbbād b. ʿAbbād > ʿĀṣim al-Aḥwal > Anas

The Prophet ﷺ brought the Ansar and the Quarish people into alliance in my house at Medina, and he invoked Allah for one month against the tribe of Bani Sulaim in (the last rakʿa of each compulsory) prayer.  

البخاري:٧٣٤٠حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا عَبَّادُ بْنُ عَبَّادٍ حَدَّثَنَا عَاصِمٌ الأَحْوَلُ عَنْ أَنَسٍ قَالَ

حَالَفَ النَّبِيُّ ﷺ بَيْنَ الأَنْصَارِ وَقُرَيْشٍ فِي دَارِي الَّتِي بِالْمَدِينَةِ وَقَنَتَ شَهْرًا يَدْعُو عَلَى أَحْيَاءٍ مِنْ بَنِي سُلَيْمٍ  


See similar narrations below:

Collected by Muslim
muslim:2529bAbū Bakr b. Abū Shaybah And Muḥammad b. ʿAbdullāh b. Numayr > ʿAbdah b. Sulaymān > ʿĀṣim > Anas

Anas reported Messenger of Allah ﷺ established fraternity between the Quraish and the Ansar in his house at Medina.  

مسلم:٢٥٢٩bحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ وَمُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ قَالاَ حَدَّثَنَا عَبْدَةُ بْنُ سُلَيْمَانَ عَنْ عَاصِمٍ عَنْ أَنَسٍ قَالَ

حَالَفَ رَسُولُ اللَّهِ ﷺ بَيْنَ قُرَيْشٍ وَالأَنْصَارِ فِي دَارِهِ الَّتِي بِالْمَدِينَةِ