Hadithcore
Sunan Ibn Majah, 977
sahih· Darussalam

It was narrated that Anas said:

“The Messenger of Allah (ﷺ) liked the Muhajirun and Ansar to stand closest to him, so that they could learn from him.”

حَدَّثَنَا نَصْرُ بْنُ عَلِيٍّ الْجَهْضَمِيُّ، حَدَّثَنَا عَبْدُ الْوَهَّابِ، حَدَّثَنَا حُمَيْدٌ، عَنْ أَنَسٍ، قَالَ كَانَ رَسُولُ اللَّهِ يُحِبُّ أَنْ يَلِيَهُ الْمُهَاجِرُونَ وَالأَنْصَارُ، لِيَأْخُذُوا عَنْهُ ‏.‏

References2 variants
In-Book Reference
Book 5, Hadith 175
English Reference
Vol. 1, Book 5, Hadith 977