Anas bin Malik reported,

The Messenger of Allah ﷺ said, "When the imam says, 'Allah hears whoever praises Him,' say, 'Our Lord, to You belongs all praise.'"

Ibn Majah 876

Sahih

حدثنا هشام بن عمار حدثنا سفيان عن الزهري

عن أنس بن مالك

أن رسول الله ﷺ قال إذا قال الإمام سمع الله لمن حمده فقولوا ربنا ولك الحمد

ابن ماجه 876صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
What to say when raising one's head from ruku
Numbering
Darussalam 876
Ibn Majah 876