Sayyiduna Abu Huraira (may Allah be pleased with him) narrates: The Noble Prophet (peace and blessings be upon him) said: "Instruct those who are near death to say La ilaha illallah, for whoever's last words at the time of death are La ilaha illallah will eventually enter Paradise, even if he faces any kind of punishment before that."
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 3004
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيحسن - «الإرواء» (3/ 150).فضيلة الشيخ العلّامة شُعيب الأرناؤوطحديث صحيح