Sunan an-Nasa'i #921 · The Book of the Commencement of the Prayer

Sunan an-Nasa'iIt was narrated that Abu Hurairah said
Sunan an-Nasa'i · Book 11 · The Book of the Commencement of the Prayer
Sunan an-Nasa'i · كتاب 11 · كتاب افتتاح الصلاة
"The Messenger of Allah (ﷺ) said: 'The Imam is appointed to be followed, so when he says the takbir, say the takbir, and when he recites, be silent, and when he says: "Sami' Allahu liman hamidah (Allah hears those who praise Him)," say: "Allahumma rabbana lakal-hamd (Our Lord, to You be praise)
أَخْبَرَنَا الْجَارُودُ بْنُ مُعَاذٍ التِّرْمِذِيُّ، قَالَ حَدَّثَنَا أَبُو خَالِدٍ الأَحْمَرُ، عَنْ مُحَمَّدِ بْنِ عَجْلاَنَ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ أَبِي صَالِحٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏
"‏ إِنَّمَا جُعِلَ الإِمَامُ لِيُؤْتَمَّ بِهِ فَإِذَا كَبَّرَ فَكَبِّرُوا وَإِذَا قَرَأَ فَأَنْصِتُوا وَإِذَا قَالَ سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ فَقُولُوا اللَّهُمَّ رَبَّنَا لَكَ الْحَمْدُ ‏"‏ ‏.‏
Reference : Sunan an-Nasa'i 921In-book reference : Book 11, Hadith 46