While we were praying with the Messenger of Allah ﷺ, he heard the commotion of some men. When he finished the prayer, he asked, "What is the matter with you?"They replied, "We were rushing to catch the prayer."He said, "Do not do that. When you come to the prayer, come with calmness. Whatever you catch, pray it, and whatever you miss, complete it."
بينما نحن نصلي مع رسول الله ﷺ فسمع جلبة رجال، فلما صلى قال: ما شأنكم؟ قالوا: استعجلنا إلى الصلاة. قال: فلا تفعلوا إذا أتيتم الصلاة فعليكم بالسكينة، فما أدركتم فصلوا، وما فاتكم فأتموا.
Bukhari narrated it in the Book of Adhan (635), and Muslim in the Book of Mosques (603), both of them through the route of Yahya bin Abu Kathir, who said, Abdullah bin Abu Qatada informed me that his father informed him, and he mentioned it.