Anas bin Malik reported,

The Prophet ﷺ said, "A group of people will be brought out of the Hellfire after it has scorched them, and they will enter Paradise. The people of Paradise will call them the Hellfire-folk."In another narration, "Some people will be touched by the scorching of the Fire as a punishment for sins they committed, then Allah will admit them into Paradise by the grace of His mercy, and they will be called the Hellfire-folk."

Azami 895

Sahih

عن أنس بن مالك

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

الأعظمي 895صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in the intercession of the Prophet ﷺ and others
Section
Intercession of the Prophet ﷺ for everyone who said, "There is no god but Allah," and did not associate anything with Allah, even if he committed major sins and deserved the Fire
Numbering
Jami al-Kamil 895 (2nd edition)
Azami 895