Sayyiduna Anas (may Allah be pleased with him) narrates: A Jewish boy used to serve the Prophet Muhammad (peace be upon him). He fell ill. The Prophet Muhammad (peace be upon him) said to his companions: "Let us go to visit him." They went to him and his father was sitting at his head. The Prophet Muhammad (peace be upon him) said to him: "Say that there is no deity except Allah. I will intercede for you on the Day of Resurrection because of this." The boy began to look towards his father, so his father said to him: "Consider what Abu al-Qasim (peace be upon him) is telling you (i.e., obey him)." So the boy said: "I bear witness that there is no deity except Allah, and I bear witness that Muhammad (peace be upon him) is the Messenger of Allah." The Prophet Muhammad (peace be upon him) then said: "All praise is due to Allah, who has saved him from the fire of Hell."
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 2960
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «أحكام الجنائز» (ص 21) «صحيح أبي داود» (2671): خ نحوه، ويأتي برقم (4864). تنبيه!! رقم (4864) = (4884) من «طبعة المؤسسة». - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح