The Messenger of Allah ﷺ said, "Four people will be brought out of the Fire and presented before Allah. One of them will turn around and say, 'My Lord, since You have brought me out of it, do not return me to it,' and Allah will deliver him from it."
أن رسول الله ﷺ قال: يخرج من النار أربعة، فيعرضون على الله، فيلتفت أحدهم فيقول: أي رب إذا أخرجتني منها فلا تعدني فيها، فينجيه الله منها.
Muslim narrated it in the Book of Faith (192), from Haddab bin Khalid Azdi, who said, "Hammad bin Salama narrated to us, from Abu Imran and Thabit, from Anas bin Malik," and he related it.These are the four, three of whom Anas bin Malik mentioned in the hadith that follows.