It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever sits in a gathering in which he engages in much idle talk, and then, before getting up from that gathering, says: 'Subhanaka Rabbana wa bihamdika, la ilaha illa anta, astaghfiruka wa atubu ilayk' (Glory be to You, our Lord, and with Your praise; there is no god worthy of worship except You; I seek Your forgiveness and I repent to You), these words will be an expiation for the shortcomings that occurred in that gathering."
Among those who narrated this hadith from Hajjaj (may Allah have mercy on him), no one except Yahya bin al-Mubarak (may Allah have mercy on him) mentioned Sufyan (may Allah have mercy on him) as an intermediary between Hajjaj (may Allah have mercy on him) and Ibn Jurayj (may Allah have mercy on him) in the chain of this hadith.
Hadith Referenceالمعجم الأوسط / باب الميم / 6584
Hadith Gradingمحدثین:معلول، والصواب موقوف
Hadith Takhrij«قال أحمد بن حنبل: علل الرواية «فتح الباري شرح صحيح البخاري، ج 13، ص 554»» «قال الدارقطني: رجح تعليل احمد «فتح الباري شرح صحيح البخاري، ج 13، ص 554»» «قال أبو حاتم الرازي: أعله «فتح الباري شرح صحيح البخاري، ج 13، ص 554»» «قال أبو زرعة الرازي: أعله «فتح الباري شرح صحيح البخاري، ج 13، ص 554»» «قال البخاري: معلول «فتح الباري شرح صحيح البخاري، ج 13، ص 554»» «قال أبو حاتم الرازي: هذا خطأ رواه وهيب عن سهيل عن عون بن عبد الله موقوف وهذا أصح «علل الحديث، ج 5، ص 407»» «قال البخاري: هذا حديث مليح ولا أعلم بهذا الإسناد في الدنيا حديثا غير هذا إلا أنه معلول «فتح الباري شرح صحيح البخاري، ج 1، ص 512»» «أخرجه ابن حبان فى «صحيحه» برقم: 594، والحاكم فى «المستدرك» برقم: 1975، والنسائي فى «السنن الكبرى» برقم: 10157، وأبو داود فى «سننه» (4/415) [دون رقم في الترقيم المختار]، والترمذي فى «جامعه» برقم: 3433، وأحمد فى «مسنده» برقم: 8940، 10559، والبزار فى «مسنده» برقم: 9096، والطحاوي فى «شرح معاني الآثار» برقم: 6956، والطبراني فى «الأوسط» برقم: 77»