عَنْ إِسْمَاعِيلَ بْنِ عَبْدِ اللَّهِ بْنِ جَعْفَرٍ رَضِيَ اللَّهُ عَنْهُ قَالَ بَلَغَنِي أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ مَا مِنْ إِنْسَانٍ يَكُونُ فِي مَجْلِسٍ فَيَقُولَ حِينَ يُرِيدُ أَنْ يَقُومَ سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ لَا إِلَهَ إِلَّا أَنْتَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ إِلَّا غُفِرَ لَهُ مَا كَانَ فِي ذَلِكَ الْمَجْلِسِ فَحَدَّثْتُ هَذَا الْحَدِيثَ يَزِيدَ بْنَ خُصَيْفَةَ قَالَ هَكَذَا حَدَّثَنِي السَّائِبُ بْنُ يَزِيدَ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ
Ismail bin Abdullah bin Ja'far says: It has reached me that the Messenger of Allah, peace and blessings be upon him, said: Whoever is in a gathering and, upon leaving the gathering, recites this supplication: Subhanak Allahumma wa bihamdika, la ilaha illa anta, astaghfiruka wa atubu ilayk (Glory is to You, O Allah, and with Your praise; there is no deity except You; I seek Your forgiveness and turn to You in repentance), then the sins committed in that gathering will be forgiven. When I narrated this hadith to Yazid bin Khusaifah, he said: Sayyiduna Sa'ib bin Yazid, may Allah be pleased with him, narrated to me a similar hadith from the Messenger of Allah, peace and blessings be upon him.