My father said, "While we were praying with the Prophet ﷺ he heard the noise of some people. After the prayer he said, 'What is the matter?' They replied 'We were hurrying for the prayer.' He said, 'Do not make haste for the prayer, and whenever you come for the prayer, you should come with calmness, and pray whatever you get (with the people) and complete the rest which you have missed." (Using translation from Bukhārī 635)
بَيْنَمَا نَحْنُ نُصَلِّي مَعَ النَّبِيِّ ﷺ إِذْ سَمِعَ جَلَبَةَ رِجَالٍ فَلَمَّا صَلَّى دَعَاهُمْ فَقَالَ مَا شَأْنُكُمْ؟ قَالُوا يَا رَسُولَ اللهِ اسْتَعْجَلْنَا إِلَى الصَّلَاةِ قَالَ فَلَا تَفْعَلُوا إِذَا أَتَيْتُمُ الصَّلَاةَ فَعَلَيْكُمُ السَّكِينَةَ فَمَا أَدْرَكْتُمْ فَصَلُّوا وَمَا سُبِقْتُمْ فَأَتِمُّوا