The Messenger of Allah ﷺ said, "When the prayer is called, do not come to it rushing. Rather, come to it walking calmly and with composure. Whatever you catch of the prayer, pray it, and whatever you miss, complete it afterward."
حدثنا محمد بن عبد الملك بن أبي الشوارب حدثنا يزيد بن زريع حدثنا معمر عن الزهري عن أبي سلمة
قال رسول الله ﷺ إذا أقيمت الصلاة فلا تأتوها وأنتم تسعون ولكن ائتوها وأنتم تمشون وعليكم السكينة فما أدركتم فصلوا وما فاتكم فأتموا
Agreed upon. Bukhari transmitted it in the Book of Friday, chapter on walking to Friday prayer, no. 908, and Muslim, no. 602, from the hadith of Zuhri through this chain.On this topic there are also narrations from Abu Qatada [Bukhari, no. 638, and Muslim, no. 604], Ubayy bin Kaab [Muslim, no. 663, regarding walking to the masjid only], Abu Saeed [Ibn Majah, no. 776, with a different wording], Zayd bin Thabit [Tabarani in Al-Kabir, 5/117, 118, nos. 4796, 4800], Jabir [Ibn Hibban, and Tuhfat Al-Ahwazi, 1/271], and Anas [Tabarani in Al-Awsat, 5/206, no. 4403].