It is narrated from Sayyiduna Abu Sa'id and Sayyiduna Abu Hurayrah (may Allah be pleased with them both) that they both said: The Messenger of Allah (peace and blessings be upon him) said: "Whoever says at the time of his death: 'La ilaha illallah, wallahu akbar, wa la hawla wa la quwwata illa billah' (There is no god worthy of worship except Allah, Allah is the Greatest, and there is no power (to avoid sin) and no strength (to do good) except through Allah), the Fire will never taste him."
Hadith Referenceالمعجم الأوسط / باب الألف / 2958
Hadith Takhrij«أخرجه ابن حبان فى «صحيحه» برقم: 851، والحاكم فى «المستدرك» برقم: 8، والنسائي فى «السنن الكبرى» برقم: 9774، 9775، 9777، 10108، والترمذي فى «جامعه» برقم: 3430 (م)، 3430، وابن ماجه فى «سننه» برقم: 3794، وأبو يعلى فى «مسنده» برقم: 1258، 6154، 6153، 6163، 6164، وعبد بن حميد فى «مسنده» برقم: 944، 943، 945، والبزار فى «مسنده» برقم: 8273، وعبد الرزاق فى «مصنفه» برقم: 6049، (3/388) [دون رقم في الترقيم المختار]، والطبراني فى «الصغير» برقم: 234»