Mishkat al-Masabih 1327
وَعَنْ عَبْدُ اللَّهِ بْنِ أَبِي أَوْفَى قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: مَنْ كَانَتْ لَهُ حَاجَةٌ إِلَى اللَّهِ أَوْ إِلَى أحد من بني آدم فَليَتَوَضَّأ فليحسن الْوُضُوءَ ثُمَّ لْيُصَلِّ رَكْعَتَيْنِ ثُمَّ لْيُثْنِ عَلَى اللَّهِ تَعَالَى وَلْيُصَلِّ عَلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ثُمَّ لْيَقُلْ: لَا إِلَهَ إِلَّا اللَّهُ الْحَلِيمُ الْكَرِيمُ سُبْحَانَ اللَّهِ رَبِّ الْعَرْشِ الْعَظِيمِ وَالْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ أَسْأَلُكَ مُوجِبَاتِ رَحْمَتِكَ وَعَزَائِمَ مَغْفِرَتِكَ وَالْغَنِيمَةَ مِنْ كُلِّ بِرٍّ وَالسَّلَامَةَ مِنْ كُلِّ إِثْمٍ لَا تَدَعْ لِي ذَنْبًا إِلَّا غَفَرْتَهُ وَلَا هَمًّا إِلَّا فَرَّجْتَهُ وَلَا حَاجَةً هِيَ لَكَ رِضًى إِلَّا قَضَيْتَهَا يَا أَرْحَمَ الرَّاحِمِينَ . رَوَاهُ التِّرْمِذِيُّ وَابْنُ مَاجَهْ وَقَالَ التِّرْمِذِيُّ: هَذَا حَدِيث غَرِيب
From ʿAbdullah ibn Abi Awfa, who said: The Messenger of Allah ﷺ said: "Whoever has a need from Allah or from any of the children of Adam, let him perform wudu and do it well, then let him pray two rakʿahs, then let him praise Allah the Exalted and send blessings on the Prophet ﷺ, then let him say: 'There is no god but Allah, the Forbearing, the Generous. Glory be to Allah, Lord of the Mighty Throne. Praise be to Allah, Lord of the worlds. I ask You for what brings about Your mercy, and what makes Your forgiveness certain, and a share in every good deed, and safety from every sin. Do not leave any sin of mine without forgiving it, nor any worry without relieving it, nor any need that pleases You without fulfilling it, O Most Merciful of the merciful.'" Reported by at-Tirmidhi and Ibn Majah, and at-Tirmidhi said: "This is a gharib hadith."