It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you comes to the prayer, let him walk with dignity and calm; then let him pray whatever part of the prayer he catches (with the imam), and make up (afterwards) whatever part he has missed."
Imam Abu Ya'la al-Mawsili (may Allah have mercy on him) also recorded it. The narrators of this hadith are narrators of the Sahih (Bukhari and Muslim), and it is part of a long hadith that will come at the beginning of Kitab Iftitah al-Salah.
This hadith has a shahid (supporting narration) from Sayyiduna Abu Hurayrah (may Allah be pleased with him) in the two Sahihs and other books of hadith.
Imam al-Tirmidhi (may Allah have mercy on him) said: In this chapter there are also narrations from Sayyiduna Abu Qatadah, Sayyiduna Ubayy bin Ka'b, Sayyiduna Abu Sa'id al-Khudri, Sayyiduna Zayd bin Thabit, Sayyiduna Jabir and Sayyiduna Anas (may Allah be pleased with them all).
He also said: The people of knowledge differ about walking to the mosque. Some of the people of knowledge hold that if one fears missing the first takbir, there is no harm in walking quickly, so much so that it is reported about some of the early generations that they used to hurry (with a jog) to the prayer; while other people of knowledge disliked walking quickly and preferred walking with dignity and calm. This is the view of Imam Ahmad and Imam Ishaq bin Rahwayh (may Allah have mercy on them both); both these Imams said that practice is to be according to the hadith of Sayyiduna Abu Hurayrah (may Allah be pleased with him). However, Imam Ishaq (may Allah have mercy on him) clarified that if one fears missing the first takbir, there is no harm in quickening one's pace a little.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 981
Hadith Gradingمحدثین:رجاله ثقات
Hadith Takhrij«هذا حديث رجاله رجال الصحيح، وهو طرف من حديث طويل يأتي في أول كتاب افتتاح الصلاة» «أخرجه سنن النسائي برقم: 901، وأخرجه سنن أبي داود برقم: 763، وأخرجه مسند أحمد برقم: 11623، وأخرجه فتح الباري برقم: 750، 766، وأخرجه مسند البزار برقم: 3819، وأخرجه صحيح ابن خزيمة برقم: 466، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 9932»