He testified that Abu Hurairah and Abu Saeed both bore witness that the Messenger of Allah ﷺ said, "When a servant says, 'There is no god but Allah, and Allah is the greatest,' Allah says, 'My servant has spoken the truth. There is no god but Me, and I am the greatest.'When the servant says, 'There is no god but Allah alone,' Allah says, 'My servant has spoken the truth. There is no god but Me alone.'When he says, 'There is no god but Allah, who has no partner,' Allah says, 'My servant has spoken the truth. There is no god but Me, and I have no partner.'When he says, 'There is no god but Allah, to Him belongs the dominion and to Him belongs all praise,' Allah says, 'My servant has spoken the truth. 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 nor strength except through Allah,' Allah says, 'My servant has spoken the truth. There is no god but Me, and there is no power nor strength except through Me.'"Abu Ishaq said, "Then Aghar said something I did not catch."So I asked Abu Jafar, "What did he say?"He replied, "Whoever is granted these words at the time of his death, the Fire will not touch him."
حدثنا أبو بكر حدثنا الحسين بن علي عن حمزة الزيات عن أبي إسحق
أنه شهد على أبي هريرة وأبي سعيد أنهما شهدا على رسول الله ﷺ قال إذا قال العبد لا إله إلا الله والله أكبر قال يقول الله عز وجل صدق عبدي لا إله إلا أنا وأنا أكبر وإذا قال العبد لا إله إلا الله وحده قال صدق عبدي لا إله إلا أنا وحدي وإذا قال لا إله إلا الله لا شريك له قال صدق عبدي لا إله إلا أنا ولا شريك لي وإذا قال لا إله إلا الله له الملك وله الحمد قال صدق عبدي لا إله إلا أنا لي الملك ولي الحمد وإذا قال لا إله إلا الله ولا حول ولا قوة إلا بالله قال صدق عبدي لا إله إلا أنا ولا حول ولا قوة إلا بي قال أبو إسحق ثم قال الأغر شيئا لم أفهمه قال فقلت لأبي جعفر ما قال فقال من رزقهن عند موته لم تمسه النار
Its isnad is daif.Reference: Tirmidhi, Supplications, chapter on what a person should say when he falls ill, hadith no. 3430, from the hadith of Abu Ishaq through this route. He said, hasan gharib. Shubah also narrated it from Abu Ishaq through this route, as a stopped report, and it is sahih.