The Messenger of Allah ﷺ said, "The Muhajirun and the Ansar are allies of one another, and the freed ones of Quraysh and the freed ones of Thakeef are allies of one another until the Day of Resurrection."Sharik said, Amash narrated to us from Tamim bin Salama, from Abdul-Rahman bin Hilal, from Jareer, from the Prophet ﷺ, something similar.
حدثنا وكيع عن شريك عن عاصم عن أبي وائل
قال رسول الله ﷺ المهاجرون والأنصار أولياء بعضهم لبعض والطلقاء من قريش والعتقاء من ثقيف بعضهم أولياء بعض إلى يوم القيامة قال شريك فحدثنا الأعمش عن تميم بن سلمة عن عبد الرحمن بن هلال عن جرير عن النبي ﷺ مثله