Hazrat Shaikh Moulana Muhammad Zakariyya (rahmatullahi ‘alaih) once mentioned:

We should, at all times, remember that our life is coming to an end. We have also heard our elders say that a person should take stock of his life when going to sleep. He should ponder and reflect over the number of things he will be able to take with him when he passes away and the number of things he will be forced to leave behind. Constantly remember death! Rasulullah (sallallahu ‘alaihi wasallam) is reported to have said in the mubaarak hadeeth, “Remember the thing which severs all pleasures of life, death.” Once a janaazah was passing by when somebody asked a pious person present, “Whose janaazah is this?” The pious person replied, “It is your janaazah.” When the person expressed surprise at this answer, the pious person said, “If it is not yours, then regard it to be mine.” (Merely being concerned about whose janaazah it is, is insufficient. What matters is whether one is prepared for that moment to be the moment of one’s own janaazah.) (Suhbate ba Awliyaa’ page.152)

Source: Ihyaauddeen.co.za