[Machine] On the authority of the Prophet ﷺ , he said: "Whoever sits in a gathering where there is a lot of idle talk, then before getting up, says, 'Subhanak Allahumma wa bihamdika, la ilaha illa ant, astaghfiruka wa atubu ilayk' (Glory be to You, O Allah, and I praise You. There is no deity except You. I seek forgiveness from You and I repent to You), he will be forgiven for whatever occurred in that gathering."
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ جَلَسَ فِي مَجْلِسٍ كَثُرَ فِيهِ لَغَطُهُ ثُمَّ قَالَ قَبْلَ أَنْ يَقُومَ سُبْحَانَكَ رَبَّنَا وَبِحَمْدِكَ لَا إِلَهَ إِلَّا أَنْتَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ غُفِرَ لَهُ مَا كَانَ فِي مَجْلِسِهِ ذَلِكَ