It is narrated from Sayyiduna Hudhayfah (may Allah be pleased with him) that he said: "I was supporting the Prophet (peace and blessings be upon him), who was leaning against my chest, when he (peace and blessings be upon him) said: 'Whoever says "La ilaha illallah" (There is no god worthy of worship except Allah) and his life is sealed with this word enters Paradise; whoever gives charity seeking the pleasure of Allah Almighty and his life ends upon that enters Paradise; and whoever fasts a day for the pleasure of Allah, the Mighty and Majestic, and his life is sealed with this deed enters Paradise.'" The chain of this hadith is sahih (authentic). Imam Ahmad bin Hanbal also recorded it from Sayyiduna Hudhayfah (may Allah be pleased with him) as marfu' (attributed to the Prophet), and al-Harith recorded it in detail with a da'if (weak) chain, which has already come in the Book of Funerals (Kitab al-Jana'iz) in the chapter "Whoever has his life sealed with a righteous deed before his death".
Hadith Takhrij«هذا إسناد صحيح» «ورواه الحارث مطولا بسند ضعيف، وتقدم في كتاب الجنائز في باب من ختم له بعمل صالح قبل موته» «أخرجه مسند أحمد برقم: 22813، وأخرجه المطالب العالية بزوائد المسانيد الثمانية برقم: 998»