Abu Barza reported,

Toward the end of his life, whenever the Messenger of Allah ﷺ sat in a gathering and wished to rise, he would say, "Glory be to You, Allah, and praise. I bear witness that there is no god but You. I seek Your forgiveness and turn to You in repentance."The companions said, "Messenger of Allah, you now say words that you did not say before."He replied, "This is an expiation for whatever occurs in the gathering."

Ahmad 19812

Sahih

حدثنا يعلى حدثنا الحجاج بن دينار عن أبي هاشم عن رفيع أبي العالية

عن أبي برزة الأسلمي قال

لما كان بآخرة كان رسول الله ﷺ إذا جلس في المجلس فأراد أن يقوم قال سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك فقالوا يا رسول الله إنك تقول الآن كلاما ما كنت تقوله فيما خلا قال هذا كفارة ما يكون في المجلس

أحمد 19812صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Barza Aslami
Numbering
Darussalam 19812
Ahmad 19812