وَبِهِ عَنْ حَمَّادٍ ، عَنْ ثَابِتٍ ، عَنْ أَنَسٍ ، قَالَ حَمَّادٌ : وَلَا أَعْلَمُهُ إِلَّا قَدْ رَفَعَهُ قَالَ : قَالَ النَّبِيُّ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - : إِذَا أُقِيمَتِ الصَّلَاةُ فَلْيَمْشِ أَحَدُكُمْ عَلَى هِينَتِهِ ، فَلْيُصَلِّ مَا أَدْرَكَ ، وَلْيَقْضِ مَا سُبِقَ بِهِ .
It is narrated from Sayyiduna Anas (may Allah be pleased with him); Hammad (may Allah have mercy on him) said: "I only consider it to be marfu' (a saying of the Prophet, peace and blessings be upon him)." He said that the Prophet (peace and blessings be upon him) said: "When the iqamah for the prayer is called, let each of you walk with dignity and calm; then let him pray whatever of the prayer he catches and make up whatever he has missed."
Related hadith on this topic