Hadith #152
Chapter: The Book of the Etiquette of Sleeping, Lying and Sitting etc
كتاب آداب النوم
Arabic Text
وعن أبى هريرة رضى الله عنه قال: قال رسول الله صلى الله عليه وسلم
"من جلس في مجلس، فكثر فيه لغطه فقال قبل أن يقوم من مجلسه ذلك: سبحانك اللهم وبحمدك، أشهد أن لا إله إلا أنت، أستغفرك وأتوب إليك، إلا غفر له ما كان في مجلسه ذلك" ((رَوَاهُ التِّرمِذِيُّ وَقَالَ حَدِيثٌ حَسَنٌ صحيح)).
Isnad Chain
أبى هريرة
English Translation
Abu Hurairah (may Allah be pleased with him) reported that messenger of Allah (ﷺ) said, "Whoever sits in a gathering and indulges in useless talk and before getting up supplicates: 'Subhanaka Allahumma wa bihamdika, ash-hadu an la ilaha illa Anta, astaghfiruka wa atubu ilaika (O Allah, You are free from every imperfection; praise be to You. I testify that there is no true god except You; I ask Your Pardon and turn to You in repentance),' he will be forgiven for (the sins he may have intentionally or unintentionally committed) in that assembly.".
Quran References
Reference: Riyadh al-Salihin, Book 4, Hadith 152
Sunnah.com ref: riyadh-salihin 152
Islam.wiki ID: IWH-66990