from Ubadah bin As-Samit, he said: "I entered upon him while he was dying, so I cried, and he said: "There now, why are you crying? For by Allah, if I am a martyr , then I will intercede for you, and if I can I will benefit you,' then he said: 'By Allah! There is no Hadith which I heard from the Messenger of Allah (ﷺ) which is good for you but I narrate it to you today, while I am near death. I heard the Messenger of Allah (ﷺ) say: "Whoever testifies to La Ilaha Illallah and that Muhammad is the Messenger of Allah, then Allah has forbidden the fire for him."
Jami` at-Tirmidhi Book 40, Hadith 33