The Messenger of Allah (ﷺ) as saying: If anyone's last words are "There is no god but Allah" he will enter Paradise.
Sunan Abi Dawud Book 21, Hadith 28