[Machine] Narrated by Prophet Muhammad ﷺ : "Whoever sits in a gathering where there is idle talk, and before leaving, says: 'Subhanaka Allahumma wa bihamdika, ash-hadu an la ilaha illa Anta, astaghfiruka wa atubu ilayk' (Glory be to You, O Allah, and all praise is due to You. I testify that there is no deity worthy of worship except You. I seek Your forgiveness and repent to You),' Allah will forgive him for what was said in that gathering."
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ جَلَسَ فِي مَجْلِسٍ كَثُرَ فِيهِ لَغَطُهُ فَقَالَ قَبْلَ أَنْ يَقُومَ سُبْحَانَكَ رَبَّنَا وَبِحَمْدِكَ لَا إِلَهَ إِلَّا أَنْتَ أَسْتَغْفِرُكَ ثُمَّ أَتُوبُ إِلَيْكَ إِلَّا غَفَرَ اللهُ لَهُ مَا كَانَ فِي مَجْلِسِهِ ذَلِكَ