“The Messenger of Allah ﷺ liked the Muhajirun and Ansar to stand closest to him, so that they could learn from him.” (Using translation from Ibn Mājah 977)
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُحِبُّ أَنْ يَلِيَهُ الْمُهَاجِرُونَ وَالْأَنْصَارُ لِيَحْفَظُوا عَنْهُ