[Machine] The Messenger of Allah ﷺ used to recite the following supplication at the end of a gathering: "Subhanaka Allahumma wa bihamdika, ashhadu an la ilaha illa anta, astaghfiruka wa atubu ilayk." One of us said to him, "We have never heard you recite this supplication before." The Messenger of Allah ﷺ replied, "It is a form of seeking forgiveness for whatever occurred in the gathering."
كَانَ رَسُولُ اللهِ ﷺ بِآخِرَةٍ إِذَا طَالَ الْمَجْلِسُ فَقَامَ قَالَ سُبْحَانَكَ اللهُمَّ وَبِحَمْدِكَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا أَنْتَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ فَقَالَ لَهُ بَعْضُنَا إِنَّ هَذَا قَوْلٌ مَا كُنَّا نَسْمَعُهُ مِنْكَ فِيمَا خَلَا فَقَالَ رَسُولُ اللهِ ﷺ هُوَ كَفَّارَةُ مَا يَكُونُ فِي الْمَجْلِسِ