Khabbab, the freed slave of al-Zubayr (may Allah have mercy on him), narrates from Sayyiduna al-Zubayr bin al-Awwam (may Allah be pleased with him) that he said: "O Messenger of Allah (peace and blessings be upon him)! When we get up and leave your company, we start talking about the matters of the Jahiliyyah." He (peace and blessings be upon him) said: "When you sit in such gatherings about which you fear (sin) for yourselves, then when getting up from there say: 'Subhanakallahumma wa bihamdika, la ilaha illa anta, astaghfiruka wa atubu ilayk' (O Allah, You are free from all imperfection, and with Your praise; there is no deity worthy of worship except You; I seek Your forgiveness and I turn to You in repentance), and whatever (sin or shortcoming) you incurred in that gathering will be expiated through it."
This hadith is not narrated from Sayyiduna al-Zubayr bin al-Awwam (may Allah be pleased with him) except with this chain, and Muhammad bin Yahya al-Kalbi is alone in narrating it.
Hadith Referenceالمعجم الأوسط / باب الميم / 6916
Hadith Takhrij«أخرجه الطبراني فى «الصغير» برقم: 970»