Authentic Supplication Number 251.
And in another hadeeth: “Such that if he was in a good gathering, it [the saying] would be like a seal for it, and if he was in a gathering that was a medley, it would make up for it”.
Al-Albani said that this was part of the hadeeth of Jubair Bin Mut’im which is reported by An-Nisa’ee, At-Tabarani, and Al-Hakim. Al-Hakim said it was sound according to the conditions of Muslim. He said that Ath-Thahabi agreed with Al-Hakim, and that the hadeeth is as they said. Al-Albani included this hadeeth in The Authentic of Good Sayings as #178. It is also in Al-Albani’s Silsilah Al-hadeeth as-Saheeh #81.