Imam Bukhari narrates: Abu Nu'aim narrated to us, he said: Shaiban narrated to us from Yahya from Abdullah bin Abi Qatadah from his own father, he said:
At the time when we were praying with the Prophet ﷺ, suddenly he heard the sounds and footsteps of people. After finishing the prayer, he said: What happened to you? They said: We were hurrying to catch up with the prayer. He said: Do not do that. When you come to pray, come with tranquility and and calm. Whatever part of the prayer you catch, pray it, and whatever you have missed, complete it.
حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ حَدَّثَنَا شَيْبَانُ، عَنْ يَحْيَى، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي قَتَادَةَ، عَنْ أَبِيهِ، قَالَ بَيْنَمَا نَحْنُ نُصَلِّي مَعَ النَّبِيِّ صلى الله عليه وسلم إِذْ سَمِعَ جَلَبَةَ رِجَالٍ فَلَمَّا صَلَّى قَالَ " مَا شَأْنُكُمْ ". قَالُوا اسْتَعْجَلْنَا إِلَى الصَّلاَةِ. قَالَ " فَلاَ تَفْعَلُوا، إِذَا أَتَيْتُمُ الصَّلاَةَ فَعَلَيْكُمْ بِالسَّكِينَةِ، فَمَا أَدْرَكْتُمْ فَصَلُّوا وَمَا فَاتَكُمْ فَأَتِمُّوا ".
Reference: Sahih Al Bukhari 635