كتاب الصلاة
4  
The Book of Prayers
(27)
Chapter: The Command To Be Calm During The Prayer And The Prohibition Of Gesturing With One's Hand And Raising It When Saying The Salam; And Completing The First Rows, Aligning In Them, And The Command To Come Together
(27)
باب الأَمْرِ بَالسُّكُونِ فِي الصَّلاَةِ وَالنَّهْيِ عَنِ الإِشَارَةِ بِالْيَدِ وَرَفْعِهَا عِنْدَ السَّلاَمِ وَإِتْمَامِ الصُّفُوفِ الأُوَلِ وَالتَّرَاصِّ فِيهَا وَالأَمْرِ بِالاِجْتِمَاعِ
Sahih Muslim 430 a

Jabir b. Samura reported:

The Messenger of Allah (ﷺ) came to us and said: "How is it that I see you lifting your hands like the tails of headstrong horses? Be calm in prayer." He (the narrator) said: He then again came to us and saw us (sitting) in circles. He said: "How is it that I see you in separate groups?" He (the narrator) said: He again came to us and said: "Why don't you draw yourselves up in rows as angels do in the presence of their Lord?" We said: Messenger of Allah, how do the angels draw themselves up in rows in the presence of their Lord? He (the Holy Prophet) said: "They make the first rows complete and keep close together in the row."
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَأَبُو كُرَيْبٍ قَالاَ حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنِ الْمُسَيَّبِ بْنِ رَافِعٍ، عَنْ تَمِيمِ بْنِ طَرَفَةَ، عَنْ جَابِرِ بْنِ سَمُرَةَ، قَالَ خَرَجَ عَلَيْنَا رَسُولُ اللَّهِ صلى الله عليه وسلم فَقَالَ ‏"‏ مَا لِي أَرَاكُمْ رَافِعِي أَيْدِيكُمْ كَأَنَّهَا أَذْنَابُ خَيْلٍ شُمْسٍ اسْكُنُوا فِي الصَّلاَةِ ‏"‏ ‏.‏ قَالَ ثُمَّ خَرَجَ عَلَيْنَا فَرَآنَا حَلَقًا فَقَالَ ‏"‏ مَا لِي أَرَاكُمْ عِزِينَ ‏"‏ ‏.‏ قَالَ ثُمَّ خَرَجَ عَلَيْنَا فَقَالَ ‏"‏ أَلاَ تَصُفُّونَ كَمَا تَصُفُّ الْمَلاَئِكَةُ عِنْدَ رَبِّهَا ‏"‏ ‏.‏ فَقُلْنَا يَا رَسُولَ اللَّهِ وَكَيْفَ تَصُفُّ الْمَلاَئِكَةُ عِنْدَ رَبِّهَا قَالَ ‏"‏ يُتِمُّونَ الصُّفُوفَ الأُوَلَ وَيَتَرَاصُّونَ فِي الصَّفِّ ‏"‏ ‏.‏
Reference : Sahih Muslim 430a
In-book reference : Book 4, Hadith 130
USC-MSA web (English) reference : Book 4, Hadith 864
  (deprecated numbering scheme)