Hadithcore
Mishkat al-Masabih, 1103

Abu Huraira reported God’s Messenger as saying, “Have the imam in the centre and close up the gaps.’’ Abu Dawud transmitted it.

وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «تَوَسَّطُوا الْإِمَامَ وَسُدُّوا الْخَلَلَ» . رَوَاهُ أَبُو دَاوُد

References1 variant
In-Book Reference
Book 4, Hadith 520