Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) liked that the Muhajirun and Ansar remain close to him so that, after learning the religious rulings from him, they could preserve them.
Hadith Referenceصحیح ابن حبان / كتاب إخباره ﷺ عن مناقب الصحابة رجالهم ونسائهم بذكر أسمائهم رضوان الله عليهم أجمعين / 7258
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الصحيحة» (1409).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح