Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "Whenever any Muslim is afflicted by grief or distress and he makes this supplication: 'Allahumma inni abduka, wabnu abdika, wabnu amatika, nasiyati biyadika, madin fiyya hukmuka, adlun fiyya qada'uka, as'aluka bikulli ismin huwa laka, sammayta bihi nafsaka, aw anzaltahu fi kitabika, aw allamtahu ahadan min khalqika, awista'tharta bihi fi ilm al-ghaybi indaka, an taj'ala al-Qur'ana rabi'a qalbi, wa nura basari, wa jala'a huzni, wa dhahaba hammi' (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 over me is ever executed; Your decree concerning me is just. I ask You by every name that is Yours, by which You have named Yourself, or which You sent down in Your Book, or which You taught to any of Your creation, or which You have 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 eyes, the removal of my grief and the departure of my distress), Allah removes his grief and grants him joy in place of his distress." The Companions said: "O Messenger of Allah, should we learn these words?" He (peace and blessings be upon him) said: "Yes, whoever hears them should learn them."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10314