The Prophet (saas) reminded people of death

dying is one of the foremost fears of those who doubt or do not believe in the hereafter. since they believe that death will mean the end of everything, they therefore cling desperately to this world. yet, everyone will die at the moment decreed for him by allah, and there is no means of escape from it. the prophet (saas) also told people that there was nothing to be gained by trying to avoid death, and called on them instead to consider their real life, which comes after.

say: "flight will not benefit you if you try to run away from death or being killed. then you will only enjoy a short respite." (surat al-ahzab: 16)

say: "you have a promised appointment on a day which you cannot delay or advance a single hour." (surah saba': 30)

the prophet (saas) recommended to people they think about death, and said:

"those who are most aware of death and prepare themselves for it. they are the wisest of people."45