Sayyiduna al-Zubayr bin al-Awwam (may Allah be pleased with him) narrates: We said: "O Messenger of Allah, when we get up from your company, we start talking about the matters of the Jahiliyyah (pre-Islamic ignorance)." The Prophet (peace and blessings be upon him) said: "When you sit in such gatherings in which you fear for yourselves (that some wrong word may have come from you), then recite when getting up:
'Subhanaka Allahumma wa bihamdika, nashhadu an la ilaha illa anta, nastaghfiruka wa natubu ilayk' (Glory be to You, O Allah, and praise is Yours; we bear witness that there is no god but You; we seek Your forgiveness and we turn to You in repentance)."
The Prophet (peace and blessings be upon him) said: "Then whatever wrong you committed in that gathering will be wiped away."
Tabarani recorded it in al-Mu'jam al-Saghir and al-Mu'jam al-Awsat, and its chain contains a narrator whom I do not know.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الأذكار / 17163
Hadith Gradingمحدثین:إسنادہ ضعیف
Hadith Takhrij«اخرجه الطبراني فى المعجم الصغير (970) ، أخرجه المعجم الصغير للطبراني برقم: 931»