It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: The expiation for a gathering is that when a person gets up from a gathering, he should say: "Subhanak Allahumma wa bihamdika astaghfiruka wa atubu ilaik."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 8818
Hadith Gradingحکم دارالسلام:حديث صحيح، إسماعيل بن عياش - وإن كان مختلطا فى روايته عن غير أهل بلده وهذا منها - قد توبع