Dhikr (remembrance of Allaah) has a wonderful effect in calming the soul and relieving stress and worry. Allaah says (interpretation of the meaning): “…Verily, in the remembrance of Allaah do hearts find rest.”[al-Ra’d 13:28]
The greatest phrase of dhikr that can relieve the distress of deathis: “Laa ilaaha ill-Allaah (there is no god except Allaah).”This is what Talhah told ‘Umar, may Allaah be pleased with him: “I heard the Prophet (peace and blessings of Allaah be upon him) say a word which no slave says at the time of death but Allaah will ease his distress and brighten his colour. It was only the fear that I might not be able to do it that prevented me from asking him about it before he died.” ‘Umar (may Allaah be pleased with him) said: “I know what it is.” Talhah asked, “What is it?” ‘Umar (may Allaah be pleased with him) said: “Do you know any word greater that what he told his uncle to say? –‘Laa ilaaha ill-Allaah’.” Talhah said, “That’s it, by Allaah, that’s it!”
Source: Islam basics by Muhammed Salih Al-Munajjid