Ayesha reported,

Whenever the Messenger of Allah ﷺ sat in a gathering or finished praying, he would utter certain words. Ayesha asked him about these words, and he said, "If one has spoken good, these words seal it until the Day of Resurrection, and if one has spoken otherwise, they serve as an expiation for him. The words are, 'Glory be to You, Allah, and praise be to You. I seek Your forgiveness and turn to You in repentance.'"

Azami 10788

Hasan

عن عائشة

أن رسول الله ﷺ كان إذا جلس مجلسا أو صلى تكلم بكلمات، فسألته عائشة عن الكلمات، فقال: إن تكلم بخير كان طابعا عليهن إلى يوم القيامة، وإن تكلم بغير ذلك كان كفارة له: سبحانك اللهم وبحمدك أستغفرك وأتوب إليك.

الأعظمي 10788حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications
Section
What to say when getting up from one's gathering
Numbering
Jami al-Kamil 10788 (2nd edition)
Azami 10788