“I heard the Messenger of Allah (ﷺ) say: ‘No one of you should die except thinking positively of Allah.’”
Sunan Ibn Majah Book 37, Hadith 68