Sunan Ibn Majah, Volume 2, Book 5, Hadith 1384 (DarusSalam)

It was narrated that ‘Abdullah bin Abi Awfa Al-Aslami said: “The Messenger of Allah came out to us and said: ‘Whoever has some need from Allah or from any of His creation, let him perform ablution and pray two Rak’ah, then let him say: La ilaha illallahul-Halimul- Karim. Subhan-Allahi Rabbil-‘arshil-‘azim. Al-hamdu Lillahi Rabbil-‘Alamin. Allahumma inni as’aluka mujibat rahmatika, wa ‘aza’ima maghfiratika, wal-ghanimata min kulli birrin, was-salamata min kulli ithmnin. As’aluka alla tada’a li dhanban illa ghafartahu, wa la hamman illa farrajtahu, wa la hajah hiya laka ridan illa qadaitaha li (None has the right to be worshipped but Allah, the Forbearing, the Most Generous. Glory is to Allah, the Lord of the Mighty Throne. Praise is to Allah, the Lord of the worlds. O Allah, I ask You for the means of Your mercy and forgiveness, the benefit of every good deed and safety from all sins. I ask You not to leave any sin of mine but You forgive it, or any distress but You relieve it, or any need that is pleasing to You but You meet it). Then he should ask Allah for whatever he wants in this world and in the Hereafter, for it is decreed.”

حَدَّثَنَا سُوَيْدُ بْنُ سَعِيدٍ، حَدَّثَنَا أَبُو عَاصِمٍ الْعَبَّادَانِيُّ، عَنْ فَائِدِ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي أَوْفَى الأَسْلَمِيِّ، قَالَ خَرَجَ عَلَيْنَا رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ فَقَالَ ‏ "‏ مَنْ كَانَتْ لَهُ حَاجَةٌ إِلَى اللَّهِ أَوْ إِلَى أَحَدٍ مِنْ خَلْقِهِ فَلْيَتَوَضَّأْ وَلْيُصَلِّ رَكْعَتَيْنِ ثُمَّ لْيَقُلْ لاَ إِلَهَ إِلاَّ اللَّهُ الْحَلِيمُ الْكَرِيمُ سُبْحَانَ اللَّهِ رَبِّ الْعَرْشِ الْعَظِيمِ الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ اللَّهُمَّ إِنِّي أَسْأَلُكَ مُوجِبَاتِ رَحْمَتِكَ وَعَزَائِمَ مَغْفِرَتِكَ وَالْغَنِيمَةَ مِنْ كُلِّ بِرٍّ وَالسَّلاَمَةَ مِنْ كُلِّ إِثْمٍ أَسْأَلُكَ أَلاَّ تَدَعَ لِي ذَنْبًا إِلاَّ غَفَرْتَهُ وَلاَ هَمًّا إِلاَّ فَرَّجْتَهُ وَلاَ حَاجَةً هِيَ لَكَ رِضًا إِلاَّ قَضَيْتَهَا لِي ثُمَّ يَسْأَلُ اللَّهَ مِنْ أَمْرِ الدُّنْيَا وَالآخِرَةِ مَا شَاءَ فَإِنَّهُ يُقَدَّرُ ‏" ‏ ‏.‏

sunnah.com