One day we were praying behind the Messenger of Allah ﷺ. 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 Messenger of Allah ﷺ finished the prayer, he asked, "Who was the one who spoke just now?"The man replied, "It was I, Messenger of Allah."The Messenger of Allah ﷺ said, "I saw more than thirty angels rushing to be the first to record it."
أخبرنا محمد بن سلمة قال أنبأنا ابن القاسم عن مالك قال حدثني نعيم بن عبد الله عن علي بن يحيى الزرقي عن أبيه
كنا يوما نصلي وراء رسول الله ﷺ فلما رفع رأسه من الركعة قال سمع الله لمن حمده قال رجل وراءه ربنا ولك الحمد حمدا كثيرا طيبا مباركا فيه فلما انصرف رسول الله ﷺ قال من المتكلم آنفا فقال الرجل أنا يا رسول الله قال رسول الله ﷺ لقد رأيت بضعة وثلاثين ملكا يبتدرونها أيهم يكتبها أولا
Bukhari narrated it in the Book of Adhan, chapter 126, hadith 799, from the hadith of Malik through this same chain. It is also found in Muwatta (Yahya), 1/211, 212, and in the narration of Ibn Qasim, p. 302, hadith 269, and in Kubra, hadith 649.