The Messenger of Allah ﷺ said, "When the imam says, 'Sami Allahu liman hamidah' (Allah hears the one who praises Him), then say, 'Rabbana laka al-hamd' (Our Lord, to You belongs all praise), and Allah will hear you. For Allah Most High has decreed upon the tongue of His Prophet ﷺ the words, 'Sami Allahu liman hamidah.'"
حدثنا عبد الرزاق أخبرنا معمر عن قتادة عن يونس بن جبير عن حطان بن عبد الله الرقاشي
أن رسول الله ﷺ قال إذا قال الإمام سمع الله لمن حمده فقولوا ربنا لك الحمد يسمع الله عز وجل لكم فإن الله تعالى قضى على لسان نبيه ﷺ سمع الله لمن حمده