Abu Hurairah reported,

The Messenger of Allah ﷺ said, "When the imam says, 'Allah hears whoever praises Him,' say, 'O Allah, our Lord, to You belongs all praise.' Whoever's words coincide with the words of the angels will have his past sins forgiven."

Abu Dawud 848

Sahih

حدثنا عبد الله بن مسلمة عن مالك عن سمي عن أبي صالح السمان

عن أبي هريرة

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

أبو داود 848صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
What to say when raising one's head from ruku
Numbering
Darussalam 848
Abu Dawud 848