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.
abudawud:2926Musaddad > Sufyān > ʿĀṣim al-Aḥwal > Anas b. Mālik

The Messenger of Allah ﷺ established an alliance (of brotherhood) between the Emigrants and the Helpers in our house. He was asked: Did not the Messenger of Allah ﷺ say: There is no alliance in Islam ? He replied: The Messenger of Allah ﷺ established an alliance between the Emigrants and the Helpers in our house. This he said twice or thrice.  

أبو داود:٢٩٢٦حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا سُفْيَانُ عَنْ عَاصِمٍ الأَحْوَلِ قَالَ

سَمِعْتُ أَنَسَ بْنَ مَالِكٍ يَقُولُ حَالَفَ رَسُولُ اللَّهِ ﷺ بَيْنَ الْمُهَاجِرِينَ وَالأَنْصَارِ فِي دَارِنَا فَقِيلَ لَهُ أَلَيْسَ قَالَ رَسُولُ اللَّهِ ﷺ لاَ حِلْفَ فِي الإِسْلاَمِ فَقَالَ حَالَفَ رَسُولُ اللَّهِ ﷺ بَيْنَ الْمُهَاجِرِينَ وَالأَنْصَارِ فِي دَارِنَا مَرَّتَيْنِ أَوْ ثَلاَثًا