حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا سُفْيَانُ، عَنِ الزُّهْرِيِّ، عَنْ أَنَسِ بْنِ مَالِكٍ، ‏.‏ أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ ‏"‏ إِذَا قَالَ الإِمَامُ سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ ‏.‏ فَقُولُوا رَبَّنَا وَلَكَ الْحَمْدُ ‏"‏ ‏.‏

It wasnarrated from Anas bin Malik that the Messenger of Allah (PBUH)said: “When the Imam says: ‘Sami’ Allahu liman hamidah (Allah hearsthose who praise Him),’ say: ‘Rabbana wa lakal-hamd (O our Lord,toYou is the praise).’” Translation Not Available

Book Ref: Sunan Ibn Majah Book 5 Hadith 876
Web Ref:  Sunan Ibn Majah Vol 1 Book 5 Hadith 876