Allah's Messenger (ﷺ) said: "The Imam has been appointed to be followed (in the congregational prayers). So, when he utters the Takbir, utter the Takbir too, and do not utter the Takbir until he utters it. When he bows, you should bow, and do not bow until he bows. When he says, "Allah listens to him who praises him," say, "O Allah, our Rabb, to you is the praise." When he prostrates, you prostrate; and do not prostrate until he prostrates. If he prays standing, pray standing, and if he prays sitting, all of you pray sitting."
وَعَنْ يَزِيدَ بْنِ اَلْأَسْوَدِ - رضى الله عنه - { أَنَّهُ صَلَّى مَعَ رَسُولِ اَللَّهِ - صلى الله عليه وسلم -صَلَاةَ اَلصُّبْحِ, فَلَمَّا صَلَّى رَسُولُ اَللَّهِ - صلى الله عليه وسلم -إِذَا هُوَ بِرَجُلَيْنِ لَمْ يُصَلِّيَا, فَدَعَا بِهِمَا, فَجِيءَ بِهِمَا تَرْعَدُ فَرَائِصُهُمَا, فَقَالَ لَهُمَا: "مَا مَنَعَكُمَا أَنْ تُصَلِّيَا مَعَنَا?" قَالَا: قَدْ صَلَّيْنَا فِي رِحَالِنَا. قَالَ: "فَلَا تَفْعَلَا, إِذَا صَلَّيْتُمَا فِي رِحَالِكُمْ, ثُمَّ أَدْرَكْتُمْ اَلْإِمَامَ وَلَمْ يُصَلِّ, فَصَلِّيَا مَعَهُ, فَإِنَّهَا لَكُمْ نَافِلَةٌ" } رَوَاهُ أَحْمَدُ, وَاللَّفْظُ لَهُ, وَالثَّلَاثَةُ, وَصَحَّحَهُ اَلتِّرْمِذِيُّ, وَابْنُ حِبَّان َ 1 .1 - صحيح. رواه أحمد (4/160 و 161)، والنسائي (2/112)، وأبو داود (575) و (576)، والترمذي (219)، وابن حبان (1564 و 1565) وقال الترمذي: "حسن صحيح". الفرائض: جمع فريضة، وهي اللحمة التي بين الجنب والكتف تهتز عند الفزع والخوف. وقوله: "فلا تفعلا" قال ابن حبان: لفظة زجر مرادها ابتداء أمر مستأنف.
Narrated Narrated Yazid bin al-Aswad (RA):
He offered the morning prayer with Allah's Messenger (ﷺ) and when Allah's Messenger (ﷺ) finished his prayer, he saw two men who had not prayed with him. He ordered them to be brought and they were brought trembling with fear. He asked them what had prevented you from praying with us?" They said, "We had already prayed at our homes." He said, "Don't do so! If you pray at your homes and then you come while the Imam has not yet performed the prayer, you must pray with him, and it will be a voluntary prayer for you."
وَأَصْلُهُ فِي اَلصَّحِيحَيْن ِ 1 .1 - هو في البخاري (734)، ومسلم (417) ولفظه: "إنما جعل الإمام ليؤتم به، فإذا كبر فكبروا، وإذا ركع فاركعوا، وإذا قال: سمع الله لمن حمده. فقولوا: ربنا ولك الحمد، وإذا سجد فاسجدوا، وإذا صلى جالسا، فصلوا جلوسا أجمعون" وهذا لفظ البخاري.
And its basic meaning is in the Sahihain (of al-Bukhari and Muslim)].
وَعَنْ اِبْنِ عَبَّاسٍ رَضِيَ اَللَّهُ عَنْهُمَا, عَنْ اَلنَّبِيِّ - صلى الله عليه وسلم -قَالَ: { مَنْ سَمِعَ اَلنِّدَاءَ فَلَمْ يَأْتِ فَلَا صَلَاةَ لَهُ إِلَّا مِنْ عُذْرٍ } رَوَاهُ اِبْنُ مَاجَهْ, وَاَلدَّارَقُطْنِيُّ, وَابْنُ حِبَّانَ, وَالْحَاكِمُ, وَإِسْنَادُهُ عَلَى شَرْطِ مُسْلِمٍ, لَكِنْ رَجَّحَ بَعْضُهُمْ وَقْفَه ُ 1 .1 - صحيح مرفوعا. رواه ابن ماجه (793)، والدارقطني (1/420)، وابن حبان (2064)، والحاكم (1/245).
Narrated Narrated Ibn 'Abbas (RA):
Allah's Messenger (ﷺ) said: "Whoever hears the call for prayer and and does not come (to the mosque for prayer), his prayer will not be accepted from him, unless he has a (legitimate) excuse."