«إذا قال الإمام: سمع الله لمن حمده فقولوا: اللهم ربنا لك الحمد فإنه من وافق قوله قول الملائكة غفر له ما تقدم من ذنبه»
The Prophet (peace and blessings be upon him) said:
"When the imam says Sami'allahu liman hamidah, then say Allahumma Rabbana lakal-hamd, for whoever's words coincide with the words of the angels, his past sins are forgiven."