Abdullah bin Masud reported,

The Messenger of Allah ﷺ said, "No servant has ever said, when distress and grief befall him, 'O Allah, I am Your servant, son of Your servant, son of Your maidservant. My forelock is in Your hand, Your judgment over me is ever 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, that You make the Quran the spring of my heart, the light of my chest, the dispeller of my sorrow, and the remover of my distress,' except that Allah عز وجل removes his distress and replaces his sorrow with joy."They asked, "Messenger of Allah, should we learn these words?"He replied, "Yes, whoever hears them should learn them."

Ahmad 4318

Daif

حدثنا يزيد أخبرنا فضيل بن مرزوق حدثنا أبو سلمة الجهني عن القاسم بن عبد الرحمن عن أبيه

عن عبد الله قال

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

أحمد 4318ضعيف
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Masud
Numbering
Darussalam 4318
Ahmad 4318