Abu Qatada reported,

While we were praying with the Messenger of Allah ﷺ, he heard a commotion and asked, "What is the matter with you?"They said, "We hurried to reach the prayer."He said, "Do not do that. When you come to the prayer, maintain calm. Pray whatever you catch up with, and complete whatever you have missed."

Muslim 1364

Sahih

و حدثنا أبو بكر بن أبي شيبة حدثنا معاوية بن هشام حدثنا شيبان بهذا الإسناد

مسلم 1364صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Recommendation of coming to prayer with dignity and tranquility, and prohibition of coming to it running
Numbering
Darussalam 1364
Muslim 1364