Answer:
It is narrated from Abdullah ibn Mas’ud (may Allah be pleased with him) that he said: The Messenger of Allah ﷺ said: Whenever a servant is afflicted with any worry and grief, let him say these words:
«اللهم إني عبدك، وابن أمتك، ناصيتي بيدك، ماض فى حكمك، عدل فى قضاؤك، أسألك بكل اسم هو لك، سميت به نفسك أو علمته أحدا من خلقك أو أنزلته فى كتابك، أو استأثرت به فى علم الغيب عندك، أن تجعل القرآن ربيع قلبي، ونور صدري وجلاء حزني، وذهاب همي، إلا أذهب الله همه وحزنه وأبدله مكانه فرجا»
“O Allah! I am Your servant, the son of Your servant, and the son of Your maidservant. My forelock is in Your hand, Your command concerning me is carried out, and Your decree concerning me is just. I ask You by every name that belongs to You, by which You have named Yourself, or revealed in Your Book, or taught to any of Your creation, or kept to Yourself in the knowledge of the unseen with You, that You make the Qur’an the spring of my heart, the light of my chest, the remover of my grief, and the one that takes away my anxiety.”
Allah the Exalted takes away his grief and anxiety, and gives him ease in exchange.
It is narrated from Abdullah ibn Abbas (may Allah be pleased with them both):
«من كثر همومه وغمومه، فليكثر من قول: لا حول ولا وقوة إلا بالله»
“Whoever has much grief and many worries, let him say often: «لا حول ولا قوة إلا بالله» (there is no power to do good or to avoid sin except with Allah).”
It is narrated in the two Sahihs:
«أنها كنز من كنوز الجنة»
“It is one of the treasures of Paradise.”