كتاب الْمَسَاجِدِ وَمَوَاضِعِ الصَّلاَةِ
5  
The Book of Mosques and Places of Prayer
(28)
Chapter: It is recommended to come to prayers in a tranquil and dignified manner, and it is forbidden to come in a hasty manner
(28)
باب اسْتِحْبَابِ إِتْيَانِ الصَّلاَةِ بِوَقَارٍ وَسَكِينَةٍ وَالنَّهْىِ عَنْ إِتْيَانِهَا سَعْيًا ‏‏
Sahih Muslim 603 a

Abdullah b. Abu Qatada reported on the authority of his father:

While we said our prayer with the Messenger of Allah (ﷺ) he heard tumult. (At the end of the prayer) he (the Holy Prophet) said: What is the matter with you? They said: We hastened to prayer. He (the Holy Prophet) said: Don't do that; when you come for prayer, there should be tranquillity upon you. Pray (along with the Imam) what you can find and complete what preceded you.
حَدَّثَنِي إِسْحَاقُ بْنُ مَنْصُورٍ، أَخْبَرَنَا مُحَمَّدُ بْنُ الْمُبَارَكِ الصُّورِيُّ، حَدَّثَنَا مُعَاوِيَةُ بْنُ سَلاَّمٍ، عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ، أَخْبَرَنِي عَبْدُ اللَّهِ بْنُ أَبِي قَتَادَةَ، أَنَّ أَبَاهُ، أَخْبَرَهُ قَالَ بَيْنَمَا نَحْنُ نُصَلِّي مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم فَسَمِعَ جَلَبَةً ‏.‏ فَقَالَ ‏"‏ مَا شَأْنُكُمْ ‏"‏ ‏.‏ قَالُوا اسْتَعْجَلْنَا إِلَى الصَّلاَةِ ‏.‏ قَالَ ‏"‏ فَلاَ تَفْعَلُوا إِذَا أَتَيْتُمُ الصَّلاَةَ فَعَلَيْكُمُ السَّكِينَةُ فَمَا أَدْرَكْتُمْ فَصَلُّوا وَمَا سَبَقَكُمْ فَأَتِمُّوا ‏"‏ ‏.‏
Reference : Sahih Muslim 603a
In-book reference : Book 5, Hadith 198
USC-MSA web (English) reference : Book 4, Hadith 1253
  (deprecated numbering scheme)