عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ كَفَّارَةُ الْمَجَالِسِ أَنْ يَقُولَ الْعَبْدُ سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ
It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: The expiation for gatherings is that a servant recites this supplication at the end of the gathering: Subhanaka Allahumma wa bihamdika astaghfiruka wa atubu ilayk. (O Allah! You are pure, and with Your praise, I seek Your forgiveness and turn to You in repentance.)