Abdullah bin Masud reported,

The Messenger of Allah ﷺ said, "No servant is ever afflicted with anxiety, grief, or sorrow and then says, 'O Allah, I am Your servant, the son of Your servant, the son of Your maidservant. My forelock is in Your hand. Your judgment over me is binding, and Your decree concerning me is just. I ask You by every name that belongs to You, by which You have named Yourself, or which You have revealed in Your Book, or which You have taught to any of Your creation, or which You have kept hidden in the knowledge of the unseen with You, that You make the Quran the springtime of my heart, the light of my chest, the dispeller of my grief, and the remover of my anxiety and sorrow,' except that Allah removes his anxiety and grief and replaces it with joy."They asked, "Messenger of Allah, should we not learn these words?"He replied, "Yes indeed, whoever hears them ought to learn them."

Azami 10967

Hasan

عن عبد الله بن مسعود قال

قال رسول الله ﷺ: ما أصاب عبدا قط هم ولا غم ولا حزن، فقال: اللهم إني عبدك، ابن عبدك، ابن أمتك، ناصيتي بيدك، ماض في حكمك، عدل في قضاؤك، أسألك بكل اسم هو لك، سميت به نفسك، أو أنزلته في كتابك، أو علمته أحدا من خلقك، أو استأثرت به في علم الغيب عندك، أن تجعل القرآن ربيع قلبي، ونور صدري، وجلاء حزني، وذهاب همي وغمي، إلا أذهب الله همه وغمه، وأبدله مكانه فرحا قالوا: يا رسول الله، أفلا نتعلمهن؟ قال: بلى، ينبغي لمن يسمعهن أن يتعلمهن.

الأعظمي 10967حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Legitimate means of seeking nearness in supplication
Section
Seeking nearness to Allah the Exalted in supplication through His beautiful names and lofty attributes. Allah the Exalted said, "And to Allah belong the beautiful names, so invoke Him by them" [Araf 180]
Numbering
Jami al-Kamil 10967 (2nd edition)
Azami 10967