I bear witness regarding Abu Saeed and Abu Hurairah that they both testified concerning the Prophet ﷺ that he said, "Whoever says, 'There is no god but Allah, and Allah is the greatest,' his Lord confirms him 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 the dominion and to Him belongs all praise,' Allah says, 'There is no god but Me, to Me belongs the dominion 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,' Allah says, 'There is no god but Me, and there is no power and no strength except through Me.'"And he used to say, "Whoever says these words during his illness and then dies, the Fire will not consume him."
أشهد على أبي سعيد وأبي هريرة أنهما شهدا على النبي ﷺ أنه قال: من قال: لا إله إلا الله والله أكبر صدقه ربه فقال: لا إله إلا أنا وأنا أكبر، وإذا قال: لا إله إلا الله وحده قال: يقول الله: لا إله إلا أنا وحدي، وإذا قال: لا إله إلا الله وحده لا شريك له، قال الله: لا إله إلا أنا وحدي لا شريك لي، وإذا قال: لا إله إلا الله له الملك وله الحمد، قال الله: لا إله إلا أنا لي الملك ولي الحمد، وإذا قال: لا إله إلا الله ولا حول ولا قوة إلا بالله، قال الله: لا إله إلا أنا ولا حول ولا قوة إلا بي، وكان يقول: من قالها في مرضه ثم مات لم تطعمه النار.
Tirmidhi (3430) narrated it through Abdul-Jabbar bin Abbas, Nasai in Amal al-Yawm wal-Layla (30) and Ibn Majah (3794) through Hamza Zayyat, Nasai (31) and Ibn Hibban (851), who graded it sahih, and Hakim (5/1) through Israil, and Nasai (348) through Zuhayr. All four of them narrated from Abu Ishaq, from Aghar Abu Muslim, and he mentioned it.Tirmidhi said, "This is a hasan hadith. Shubah narrated from Abu Ishaq, from Aghar Abu Muslim, from Abu Hurairah and Abu Saeed, something similar to this hadith in meaning, but Shubah did not attribute it to the Prophet. Bundar narrated this to us, he said, Muhammad bin Jafar narrated to us, from Shubah, with this wording."I say, Shubah's stopping this hadith at the Companion does no harm, for Israil and others attributed it to the Prophet.Abu Ishaq was also corroborated in attributing it to the Prophet. Abd bin Humayd (945) narrated it through Israil, from Abu Jafar Farra, from Aghar, attributing it to the Prophet, and its chain is sahih.Hakim said, "This is a sahih hadith that was not narrated in the Sahihayn, though both of them relied on the hadith of Abu Ishaq, from Aghar, from Abu Hurairah and Abu Saeed, and both of them agreed on using as evidence the narrations of Israil bin Yunus from Abu Ishaq."Dhahabi commented on this by saying, "Shubah and others stopped it at the Companion."I say, but others attributed it to the Prophet, and they are more numerous, and their addition is acceptable.