Abu Hurairah and Abu Saeed Khudri reported,

They both bore witness that the Prophet ﷺ said, "Whoever says, 'There is no god but Allah, and Allah is the greatest,' his Lord affirms his words and says, 'There is no god but Me, and I am the greatest.'When he says, 'There is no god but Allah alone,' Allah says, 'There is no god but Me alone.'When he says, 'There is no god but Allah alone, with no partner,' Allah says, 'There is no god but Me alone, with no partner.'When he says, 'There is no god but Allah, to Him belongs sovereignty and to Him belongs all praise,' Allah says, 'There is no god but Me, to Me belongs sovereignty and to Me belongs all praise.'When he says, 'There is no god but Allah, and there is no power and no strength except through Allah,' He says, 'There is no god but Me, and there is no power and no strength except through Me.'"He used to say, "Whoever says these words during his illness and then dies, the Fire will not consume him."

Tirmidhi 3430

Daif

حدثنا سفيان بن وكيع حدثنا إسمعيل بن محمد بن جحادة حدثنا عبد الجبار بن عباس عن أبي إسحق عن الأغر أبي مسلم قال أشهد على

أبي سعيد وأبي هريرة

أنهما شهدا على النبي ﷺ أنه قال من قال لا إله إلا الله والله أكبر صدقه ربه فقال لا إله إلا أنا وأنا أكبر وإذا قال لا إله إلا الله وحده قال يقول الله لا إله إلا أنا وحدي وإذا قال لا إله إلا الله وحده لا شريك له قال الله لا إله إلا أنا وحدي لا شريك لي وإذا قال لا إله إلا الله له الملك وله الحمد قال الله لا إله إلا أنا لي الملك ولي الحمد وإذا قال لا إله إلا الله ولا حول ولا قوة إلا بالله قال لا إله إلا أنا ولا حول ولا قوة إلا بي وكان يقول من قالها في مرضه ثم مات لم تطعمه النار

الترمذي 3430ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Supplications
Chapter
What a person says when he is sick
Numbering
Darussalam 3430
Tirmidhi 3430