Before you get up and leave a gathering
Whatever was said in the sitting that should not have been, this covers it.
The opening words
مَنْ جَلَسَ فِي مَجْلِسٍ فَكَثُرَ فِيهِ لَغَطُهُ فَقَالَ قَبْلَ أَنْ يَقُومَ مِنْ مَجْلِسِهِ ذَلِكَ سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ أَشْهَدُ أَنْ لاَ إِلَهَ إِلاَّ أَنْتَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ . إِلاَّ غُفِرَ لَهُ مَا كَانَ فِي مَجْلِسِهِ ذَلِكَ
Subḥānaka-llāhumma wa bi-ḥamdik, ashhadu an lā ilāha illā ant, astaghfiruka wa atūbu ilayk.
The pronunciation above covers the opening of this passage, not all of it
“Glory be to You, O Allah, and praise. I bear witness that there is no god but You. I seek Your forgiveness and turn to You.”
The full narration
Abu Hurairah narrated that:The Messenger of Allah (ﷺ) said: “Whoever sits in a sitting and engages in much empty, meaningless speech and then says before getting from that sitting of his: ‘Glory is to You, O Allah, and praise, I bear witness that there is none worthy of worship except You, I seek You forgiveness, and I repent to You, (Subḥānaka Allāhumma wa biḥamdika, ashhadu an lā ilāha illā anta, astaghfiruka wa atūbu ilaik)’ whatever occurred in that sitting would be forgiven to him.”
Source
Jāmiʿ at-Tirmidhī · 3433
- Ahmad Muhammad Shakir: Sahih
- Al-Albani: Sahih
- Bashar Awad Maarouf: Hasan Sahih
- Zubair Ali Zai: Sahih