(28) باب تَسْوِيَةِ الصُّفُوفِ وَإِقَامَتِهَا وَفَضْلِ الأَوَّلِ فَالأَوَّلِ مِنْهَا وَالاِزْدِحَامِ عَلَى الصَّفِّ الأَوَّلِ وَالْمُسَابَقَةِ إِلَيْهَا وَتَقْدِيمِ أُولِي الْفَضْلِ وَتَقْرِيبِهِمْ مِنَ الإِمَامِ
Abu Sa'id al-Khudri reported:
The Messenger of Allah (ﷺ) saw people at the end of the mosque, and then the (above-mentioned hadith) was narrated. (ID)
Reference (ID): Sahih Muslim 438 b (ID)
In-book reference (ID): Book 4, Hadith 145 (ID)
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 879 (ID)