Rifa bin Rafi reported,

One day we were praying behind the Prophet ﷺ, and when he raised his head from the bowing position he said, "Allah hears whoever praises Him."A man behind him said, "Our Lord, to You belongs all praise, abundant, pure, and blessed praise."When the Prophet ﷺ finished the prayer, he asked, "Who was the one who spoke?"The man replied, "It was I."The Prophet ﷺ said, "I saw more than thirty angels rushing to be the first to record it."

Bukhari 799

Sahih

حدثنا عبد الله بن مسلمة عن مالك عن نعيم بن عبد الله المجمر عن علي بن يحيى بن خلاد الزرقي عن أبيه

عن رفاعة بن رافع الزرقي قال

كنا يوما نصلي وراء النبي ﷺ فلما رفع رأسه من الركعة قال سمع الله لمن حمده قال رجل وراءه ربنا ولك الحمد حمدا كثيرا طيبا مباركا فيه فلما انصرف قال من المتكلم قال أنا قال رأيت بضعة وثلاثين ملكا يبتدرونها أيهم يكتبها أول

البخاري 799صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
Virtue of saying "O Allah, our Lord, to You is praise"
Numbering
Darussalam 799
Bukhari 799