Anas bin Malik reported,

The Prophet ﷺ said, "I will keep interceding with my Lord, and He will keep granting me intercession, until I say, 'My Lord, grant me intercession for whoever said there is no god but Allah.'Then He will say, 'This is not for you, Muhammad. This belongs to Me alone. By My might, My forbearance, and My mercy, I will not leave in the Fire anyone,'" or He said, "'any servant who said there is no god but Allah.'"

Azami 912

Hasan

عن أنس

عن النبي ﷺ قال: ما زلت أشفع إلى ربي ويشفعني حتى أقول: رب شفعني فيمن قال: لا إله إلا الله. قال: فيقول: ليست هذه لك يا محمد إنما هي لي، أما وعزتي وحلمي ورحمتي لا أدع في النار أحدا- أو قال: عبدا- قال: لا إله إلا الله.

الأعظمي 912حسن
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 912 (2nd edition)
Azami 912