It is the way of the Prophet (Allah bless him and give him peace) to remember death frequently.