Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Prophet Muhammad (peace and blessings be upon him) said: "Whoever participates in a gathering where there is much idle talk, and before getting up from there recites: 'Glory is to You, O Allah! O our Lord! Praise is for You alone. There is no deity except You. I seek Your forgiveness and turn to You in repentance,' then whatever mistakes he made in that gathering will be forgiven."
Hadith Referenceصحیح ابن حبان / كتاب البر والإحسان / 594
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الموارد» (2366).فضيلة الشيخ العلّامة شُعيب الأرناؤوطرجاله ثقات، وقد صرح ابن جريج بالتحديث عند الترمذي والحاكم، فانتفت شبهة تدليسه، وأبو قرة: هو موسى بن طارق الزبيدي.