It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Any people who sit in a gathering and become absorbed in (worldly or idle) talk, then seek forgiveness from Allah Almighty before getting up from there, Allah Almighty forgives them all the talk in which they were absorbed."
Abu Ya'la al-Mawsili recorded it. This hadith also has a corroborating report (shahid) from the narration of Sayyiduna Abu Hurayrah (may Allah be pleased with him), which Abu Dawud, al-Nasa'i and Ibn Hibban in his Sahih recorded, and another corroborating report from the hadith of Sayyiduna al-Sa'ib bin Yazid (may Allah be pleased with him), which Ahmad bin Muhammad bin Hanbal recorded.