Anas bin Malik reported,

A man came to the Prophet ﷺ during the prayer and said, "Praise be to Allah, abundant, good, and blessed praise."When the Prophet ﷺ finished the prayer, he asked, "Which of you spoke those words?"The people remained silent. He repeated the question three times, and then a man said, "I said them, and I intended nothing by them except good."The Prophet ﷺ said, "Twelve angels rushed to record those words, but they did not know how to write them down until they asked their Lord عز وجل. He told them, 'Write it as My servant said it.'"

Ahmad 13844

Sahih

حدثنا بهز وعفان قالا حدثنا همام حدثنا قتادة

عن أنس قال

جاء رجل إلى النبي ﷺ في الصلاة فقال الحمد لله حمدا كثيرا طيبا مباركا فيه فلما قضى النبي ﷺ الصلاة قال أيكم القائل كلمة كذا وكذا قال فأرم القوم قال فأعادها ثلاث مرات فقال رجل أنا قلتها وما أردت بها إلا الخير قال فقال النبي ﷺ لقد ابتدرها اثنا عشر ملكا فما دروا كيف يكتبونها حتى سألوا ربهم عز وجل فقال اكتبوها كما قال عبدي

أحمد 13844صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 13844
Ahmad 13844