As Salamu Alaikum wa Rahmatullahi wa Barakatuhu
Dua before leaving a gathering
“Whoever sits in a gathering in which he speaks idle excessively, but says before he stands up to depart that gathering
“Subhanaka Allahumma wa Bihamdika, Ashhadu an La Ilaaha illa Anta. Astaghfiruka, and Atubu ilayka”
Then Allah will forgive him what he has said in that gathering. (At-Tirmidhi)

Dua before leaving a gathering
“Whoever sits in a gathering in which he speaks idle excessively, but says before he stands up to depart that gathering
“Subhanaka Allahumma wa Bihamdika, Ashhadu an La Ilaaha illa Anta. Astaghfiruka, and Atubu ilayka”
Then Allah will forgive him what he has said in that gathering. (At-Tirmidhi)
