It was narrated that Abu Hurairah said:“The Messenger of Allah (ﷺ) said: ‘The Imam is appointed to be followed. When he says Allahu Akbar, then say Allahu Akbar; when he bows, then bow; when he says Sami’ Allahu liman hamidah, then say Rabbana wa lakal-hamd; when he prostrates then prostrate; if he prays standing, then pray standing, and if he prays sitting down then pray sitting down.”
Hadith No. 1239
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Sahih
Zubair Ali Zai:
Sahih