Hadith 2433

وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: مَنْ جَلَسَ مَجْلِسًا فَكَثُرَ فِيهِ لَغَطُهُ فَقَالَ قَبْلَ أَنْ يَقُومَ: سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا أَنْتَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ إِلَّا غُفِرَ لَهُ مَا كَانَ فِي مَجْلِسِهِ ذَلِكَ . رَوَاهُ التِّرْمِذِيّ وَالْبَيْهَقِيّ فِي الدَّعْوَات الْكَبِير
Abu Huraira reported God’s messenger as saying that if anyone sits in an assembly where there is much clamour* and says before getting up to leave, “Glory be to Thee, O God, and I begin with praise of Thee; I testify that there is no god but Thou; I ask Thy pardon and turn to Thee in repentance,” he will be forgiven for what took place in that assembly where he was. *Or, ‘wicked talk,’ or, 'meaningless talk' Tirmidhi and Baihaqi in [Kitab] ad-Da'awat al-kabir, transmitted it.
Hadith Reference Mishkat al-Masabih / The Book of Supplications / Hadith: 2433
Hadith Grading الألبانی: صَحِيحٌ  |  زبیر علی زئی: إسناده صحيح
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «إسناده صحيح، رواه الترمذي (3433 وقال: حسن صحيح) و البيھقي في الدعوات الکبير (لم أجده ورواه في شعب الإيمان:628)»