It is narrated from Hazrat Anas (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) liked that the Muhajirun and Ansar stand close to him together in prayer so that they could learn the matters of prayer.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 13064