Authentic Supplication Number 250.
The Messenger of Allah  said:”No one sits in a seating place in which he utters much confusion, but then says prior to getting up from that seating place of his: Subhanaka ‘allahumma wa bihamdika, ‘ash-hadu ‘alla ‘ilaha ‘illa ‘anta, ‘astaghfiruka wa ‘atoobu ‘ilayka (255) except that Allah would cover up for him that which occurred in that seating of his”.
Footnotes.
(255) Glorified are You O’ my ‘ilah and I am in your praise, I testify that there is no ‘ilah except You, I ask your forgiveness and repent unto You.
Reporters.
At-Tirmithi said it was comley-sound. Al-Albani agreed with him, and pointed out that a number of people reported it including: Ibn Hibban, and Al-Hakim who said it was sound according to Muslims conditions. Al-Albani said that Ath-Thahabi agreed with him, and that he agreed with the two of them. Al-Albani included this hadeeth in The Authentic of Good Sayings as #177.