Hadith 7.2
Supplications
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 You, O God, and I begin with praise of You; I testify that there is no god but You; I ask Your pardon and turn to You 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 <i>[Kitab] ad-Da'awat al-kabir</i>, transmitted it.
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:
مَنْ جَلَسَ مَجْلِسًا فَكَثُرَ فِيهِ لَغَطُهُ فَقَالَ قَبْلَ أَنْ يَقُومَ: سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا أَنْتَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ إِلَّا غُفِرَ لَهُ مَا كَانَ فِي مَجْلِسِهِ ذَلِكَ
Hadith gradings, numbering and translations can differ between editions. For legal rulings or detailed interpretation, consult qualified scholarship and the referenced edition.