Rifa bin Rafi reported,

We were praying one day behind the Messenger of Allah ﷺ. When he raised his head from the bowing, he said, "Allah hears whoever praises Him."A man behind him said, "Our Lord, to You belongs the praise, abundant, good, and blessed praise."When the Prophet ﷺ finished the prayer, he asked, "Who was the one who spoke just now?"The man replied, "I did."The Prophet ﷺ said, "I saw some thirty-odd angels rushing to be the first to write them down."

Azami 11013

Sahih

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

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

الأعظمي 11013صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications of adhan and prayer, and what is related to them
Section
What to say when raising one's head from ruku
Numbering
Jami al-Kamil 11013 (2nd edition)
Azami 11013