Messenger of Allah(ﷺ) said: "There is no soul that died bearing witness to La ilaha illallah, and that I am the Messenger of Allah, from the heart with certainity, but Allah will forgive it."
Sunan Ibn Majah Book 33, Hadith 140