I asked Anas bin Malik, "Has it reached you that the Prophet ﷺ said, 'There is no alliance in Islam'?"He replied, "The Prophet ﷺ established an alliance between Quraysh and the Ansar in my very house."
قلت لأنس بن مالك: أبلغك أن النبي ﷺ قال: لا حلف في الإسلام فقال: قد حالف النبي ﷺ بين قريش والأنصار في داري.
Bukhari related it in Adab (6083) from Muhammad bin Sabbah, who said, Ismail bin Zakariyya narrated to us, Aasim narrated to us, and he mentioned it. Muslim related it in Fadail al-Sahabah (204:2529) from Muhammad bin Sabbah, who said, Hafs bin Ghiyath narrated to us, from Aasim Ahwal, and he mentioned it.