Allah's Messenger (ﷺ) said, "When the Imam, during the prayer, says, "Allah hears him who…

Sahih al-Bukhari Book 59 Hadith 39

Sahih al-Bukhari #3228

Beginning of Creation 59:39

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said, "When the Imam, during the prayer, says, "Allah hears him who praises Him', say: 'O Allah! Our Lord! All the praises are for You/, for if the saying of anyone of you coincides with the saying of the angels, his past sins will be forgiven."

Chapter: If anyone says Amin [during the Salat (prayer) at the end of the recitation of Surat Al-Fatiha]

Grade: Sahih