Anas bin Malik reported,

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

Ahmad 12988

Sahih

حدثنا بهز حدثنا همام حدثنا قتادة

عن أنس قال

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

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