One should go calmly towards the mosque for prayer
➊ It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Prophet ﷺ said: “When you hear the iqamah for prayer, then عليكم السكينة والوقار “walk to the prayer with calmness, tranquility and dignity.” Do not hurry or rush. Pray as much of the prayer as you catch with the congregation, and complete (afterwards) whatever remains.”
➋ In one narration the words are:
إذا اتيتسم الصلاة فعليكم السكينة
“Whenever you come to the prayer, walk to it with calmness and tranquility.”
The jurists differed on this issue: if a person joins the congregation later, is the prayer he prayed with the imam counted as the first rak’ahs or the last ones?
(The majority) This prayer of the follower is counted as the first.
(Abu Hanifah, may Allah have mercy on him) This prayer is counted as the last rak’ahs.
(The preferred view) The position of the majority is the preferred one.
Its evidences are as follows:
➊ The hadith of the Prophet ﷺ says:
فما أدركتم فصلوا وما فاتكم فأتموا
“Pray as much of the prayer as you catch with the imam, and complete afterwards whatever remains.”
(Shawkani, may Allah have mercy on him) The command to complete is proof that the portion of the prayer he prayed with the imam was the beginning of his prayer.
➋ It is narrated from Ali (may Allah be pleased with him) that:
ما أدركت مع الإمام فهو أول صلاتك
“What you catch of the prayer with the imam is the first of your prayer.”