Sayyiduna Zubair bin Al-Awwam (may Allah be pleased with him) says: O Messenger of Allah! When we leave your presence, we begin to talk about matters of ignorance. The Prophet (peace and blessings be upon him) said: "When you sit in such gatherings from which you fear for your souls, then at the time of leaving, recite this supplication: «سُبْحَانَكَاللّٰهُمَّوَبِحَمْدِكَنَشْهَدُأَنْلَاإِلٰهَإِلَّاأَنْتَنَسْتَغْفِرُكَوَنَتُوبُإِلَيْكَ» By this, your sins that you have committed will be forgiven."
Hadith Referenceمعجم صغير للطبراني / كتاب الأدعية و الأذكار / 968
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«إسناده ضعيف ، وأخرجه الطبراني فى «الأوسط» برقم: 6916، والطبراني فى «الصغير» برقم: 970 وفيه من لم أعرفه ، مجمع الزوائد ومنبع الفوائد: (10 / 141)»