Here is an example for those in sorrow and distress: The Messenger of Allah entered the mosque one day and saw an Ansari man there by the name of Abu Umamah. The Prophet asked him: O Abu Umamah, why are you sitting in the mosque at a time that is not a prayer time?’ He replied: I was forced to do so by sorrow and debt.
The Messenger of Allah then asked: Shall I teach you a supplication by which Allah will remove your sorrow and pay for you your debts? He answered: O yes, Messenger of Allah! The Prophet then said: Say every morning and evening: Allahumma inni a’udhu bikka minal-hammi wal hazan, wa a’udhu bika minal-‘ajzi wal-kasal wa a’udhu bika minal-jubni wal-bukhul wa a’udhu bika min ghalabatid-dayn wa qahrir-rijal.’
(Meaning: O Allah, I seek refuge with You from anxiety and sorrow, weakness and laziness, miserliness and cowardice, the burden of debts and from being over powered by men). Abu Umamah said: I did that and Allah removed my distress and paid for me my debt.’ (Abu Dawud).