In the prophetic tradition, one of the most effective spiritual and psychological correctives to trials and fear is
gratitude (
shukr). The Qur’an describes the prophet Ibrahim (as) as “thankful for His favors” (Qur’an 16:121), despite the continuous trials faced by him and his family. The Prophet ﷺ would spend the night in prayer until his feet were swollen, saying, “Should I not be a grateful servant?”
7 Gratitude reorients the believer not only toward the blessings that remain, but also to those that once were. In his moment of profound hardship, it is said that the prophet Ayub expressed deep gratitude for his past 70 years of good health and wealth.
8 By focusing on abundance over scarcity—or its likelihood—gratitude reminds the heart that our lives are not arbitrary or abandoned, but deeply held in divine care.
Recent studies have also shown that gratitude can meaningfully reduce death anxiety. In one experimental study, older adults who were asked to reflect on events they felt grateful for reported much lower levels of death anxiety than those asked to write about frustrations or neutral experiences.
9 This effect was not due to general mood improvement. Gratitude appeared to work specifically by helping people see their lives as full, purposeful, and worthy, which eased their fear of mortality.
Gratitude works by cultivating optimism. A 2024 study conducted after a major earthquake found that the positive effect of gratitude on reducing death anxiety depended on whether people believed good was still possible.
10 Gratitude opened the heart, but it was optimism that gave people the ability to see a future beyond fear. There is a deeply human and prophetic moment that reflects this connection. Hayyan Abi al-Nadra recounts visiting Yazid ibn al-Aswad, who was dying. Wathila ibn al-Asqaʿ entered with him and asked Yazid, “What do you expect from Allah?” Yazid replied, “By Allah, I expect good from Allah.” Wathila then gave him glad tidings from the Prophet ﷺ:
Allah said: I am as My servant expects Me. If he expects good, he will have it. If he expects evil, he will have it.11
In this powerful moment, optimism is not just a coping strategy. It is a form of faith. To expect good from Allah at the time of death is a spiritual achievement and a psychological shield. Just as Prophet Ayub (as) called out in his time of hardship, “Indeed, adversity has touched me, and you are the Most Merciful of the merciful” (Qur’an 21:83), optimism is a way of dying while trusting fully in divine mercy.
Gratitude nurtures this expectation of good. It helps the believer remember that their life has been touched by grace, even in hardship. It prepares the soul to meet its Lord with hope, not despair. Another prophetic teaching emphasizes this need and the recognition that allows such work to happen. The Prophet ﷺ said:
There are two blessings which many people waste: health and free time.12
Psychologists have found that regrets and unfinished goals (that may result from neglect) often worsen death anxiety. This hadith becomes a call to be present, intentional, and grateful for the blessings Allah has given us. To use health and time well is not just productive, it is spiritually protective. When we know that we have done the very best we can in our efforts to reach our objectives, we are able to meet death with readiness rather than regret. We are grateful for the opportunities Allah provided and for the awareness and ability to make use of them, knowing that no sincere effort to please Him will go unnoticed (Qu’ran 53:39–41).