Anas bin Malik reported,

The Messenger of Allah ﷺ said, "Four people will be brought out of the Fire and presented before Allah. One of them will turn back and say, 'My Lord, since You have brought me out of it, do not return me to it.' So Allah will save him from it."

Azami 16472

Sahih

عن أنس بن مالك

أن رسول الله ﷺ قال: يخرج من النار أربعة، فيعرضون على الله، فيلتفت أحدهم، فيقول: أي رب إذ أخرجتني منها فلا تعدني فيها، فينجيه الله منها.

الأعظمي 16472صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Description of Paradise and Hell and their inhabitants
Chapter
People of the Fire, their description
Section
Those who leave Hell while having good faith in Allah that He will not return them to it
Numbering
Jami al-Kamil 16472 (2nd edition)
Azami 16472