"مَنْ كَانَتْ لَهُ حَاجَةٌ إِلَى الله، أَوْ إِلَى أَحَدٍ من بَنى آدَمَ فَلْيَتَوضَّأ فَلْيُحْسِنِ الْوُضُوءَ، ثُمَّ ليصَلِّ رَكْعَتْينِ ثُمَّ ليُثْنِ عَلَى الله، وَلْيُصَلِّ عَلَى النَّبِيِّ ﷺ ثُمَّ ليقُلْ: لا إِلَهَ إِلا الله، الحليمُ الكَرِيمُ، سُبْحَانَ الله ربِّ العرشِ العظيم، الحمدُ لله ربِّ العَالمِينَ، أَسْأَلُكَ مُوجِبَاتِ رَحْمتِكَ وعَزَائمَ مَغْفِرَتِكَ، وَالْغَنِيمَةَ من كُلِّ بِرٍّ، والسَّلَامَةَ مِن كُلِّ إِثْمٍ، لا تَدعَ لَي ذَنْبًا إِلا غَفَرْتَهُ، وَلا هَمًّا إِلا فَرَّجْتَهُ، وَلَا حَاجَةً هي لك رضًا إِلا قَضَيتَهَا يَا أَرحَمَ الراحِمِين".
Messenger of Allah ﷺ said: "Whoever has a need from Allah, or from one of the sons of Adam, then let him perform Wudu', performing it well, then pray two Rakʿah, then praise Allah and say Salat upon the Prophet ﷺ. Then let him say: (La ilaha illallah Al-Halimul-Karim. Subhan Allah Rabbil-ʿArshil-ʿAzim. Al-Hamdulillahi Rabbil-ʿAlamin. As'aluka mujibati rahmatika wa ʿaza'im maghfiratika, wal-ghanimata min kulli birrin, was-salamata min kulli ithmin, la tadaʿ li dhanban illa ghafartahu, wa la hamman illa farrajtahu, wa la Hajatan hiya laka ridan Illa Qadaitaha, ya arham ar-rahimin) 'None has the right to be worshiped but Allah. Al-Halim (the Forbearing) Al-Karim (the Generous). Glorious is Allah, Lord of the Magnificent Throne. All praise is due to Allah, Lord of the worlds. I ask You for that which warrants Your mercy, and that which will determine Your forgiveness, and the spoils (fruits) of every righteous deed, and safety from every sin; do not leave a sin for me without forgiving it, nor a worry without relieving it. Or a need that pleases you without granting it. O Most-Merciful of those who have mercy.'"
قَالَ رَسُولُ اللَّهِ ﷺ مَنْ كَانَتْ لَهُ إِلَى اللَّهِ حَاجَةٌ أَوْ إِلَى أَحَدٍ مِنْ بَنِي آدَمَ فَلْيَتَوَضَّأْ وَلْيُحْسِنِ الْوُضُوءَ ثُمَّ لْيُصَلِّ رَكْعَتَيْنِ ثُمَّ لْيُثْنِ عَلَى اللَّهِ وَلْيُصَلِّ عَلَى النَّبِيِّ ﷺ ثُمَّ لْيَقُلْ لاَ إِلَهَ إِلاَّ اللَّهُ الْحَلِيمُ الْكَرِيمُ سُبْحَانَ اللَّهِ رَبِّ الْعَرْشِ الْعَظِيمِ الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ أَسْأَلُكَ مُوجِبَاتِ رَحْمَتِكَ وَعَزَائِمَ مَغْفِرَتِكَ وَالْغَنِيمَةَ مِنْ كُلِّ بِرٍّ وَالسَّلاَمَةَ مِنْ كُلِّ إِثْمٍ لاَ تَدَعْ لِي ذَنْبًا إِلاَّ غَفَرْتَهُ وَلاَ هَمًّا إِلاَّ فَرَّجْتَهُ وَلاَ حَاجَةً هِيَ لَكَ رِضًا إِلاَّ قَضَيْتَهَا يَا أَرْحَمَ الرَّاحِمِينَ
“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.”
خَرَجَ عَلَيْنَا رَسُولُ اللَّهِ ﷺ فَقَالَ مَنْ كَانَتْ لَهُ حَاجَةٌ إِلَى اللَّهِ أَوْ إِلَى أَحَدٍ مِنْ خَلْقِهِ فَلْيَتَوَضَّأْ وَلْيُصَلِّ رَكْعَتَيْنِ ثُمَّ لْيَقُلْ لاَ إِلَهَ إِلاَّ اللَّهُ الْحَلِيمُ الْكَرِيمُ سُبْحَانَ اللَّهِ رَبِّ الْعَرْشِ الْعَظِيمِ الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ اللَّهُمَّ إِنِّي أَسْأَلُكَ مُوجِبَاتِ رَحْمَتِكَ وَعَزَائِمَ مَغْفِرَتِكَ وَالْغَنِيمَةَ مِنْ كُلِّ بِرٍّ وَالسَّلاَمَةَ مِنْ كُلِّ إِثْمٍ أَسْأَلُكَ أَلاَّ تَدَعَ لِي ذَنْبًا إِلاَّ غَفَرْتَهُ وَلاَ هَمًّا إِلاَّ فَرَّجْتَهُ وَلاَ حَاجَةً هِيَ لَكَ رِضًا إِلاَّ قَضَيْتَهَا لِي ثُمَّ يَسْأَلُ اللَّهَ مِنْ أَمْرِ الدُّنْيَا وَالآخِرَةِ مَا شَاءَ فَإِنَّهُ يُقَدَّرُ
[Machine] The Messenger of Allah ﷺ came out to us one day and sat down. He said, "Whoever has a need to ask Allah for or to ask any human being from the children of Adam, should perform ablution and perfect his ablution, then pray two units of prayer and praise Allah, and send prayers upon the Prophet ﷺ . Then let him say, 'There is no deity except Allah, the Forbearing, the Generous. Glory be to Allah, the Lord of the Great Throne. Praise be to Allah, the Lord of all worlds. I ask You for firm determination in seeking Your forgiveness and protection from every sin and safety from every offense.'" This narration is from Fa'idh bin 'Abdul-Rahman Abu al-Warqa' al-Kufi, who is counted among the followers (tabi'in), and I have seen a group of his contemporaries, and he was upright in narrating hadith, except that the two sheikhs did not narrate from him. I only included this narration as evidence for what was mentioned previously.
خَرَجَ عَلَيْنَا رَسُولُ اللَّهِ ﷺ يَوْمًا فَقَعَدَ فَقَالَ مَنْ كَانَتْ لَهُ حَاجَةٌ إِلَى اللَّهِ أَوْ إِلَى أَحَدٍ مِنْ بَنِي آدَمَ فَلْيَتَوَضَّأْ وَلْيُحْسِنْ وُضُوءَهُ ثُمَّ لِيُصَلِّ رَكْعَتَيْنِ ثُمَّ يُثْنِي عَلَى اللَّهِ وَيُصَلِّي عَلَى النَّبِيِّ ﷺ وَلْيَقُلْ لَا إِلَهَ إِلَّا اللَّهُ الْحَلِيمُ الْكَرِيمُ سُبْحَانَ اللَّهِ رَبِّ الْعَرْشِ الْعَظِيمِ الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ أَسْأَلُكَ عَزَائِمَ مَغْفِرَتِكَ وَالْعِصْمَةَ مِنْ كُلِّ ذَنْبٍ وَالسَّلَامَةَ مِنْ كُلِّ إِثْمٍ «فَائِدُ بْنُ عَبْدِ الرَّحْمَنِ أَبُو الْوَرْقَاءِ كُوفِيٌّ عِدَادُهُ فِي التَّابِعِينَ وَقَدْ رَأَيْتُ جَمَاعَةً مِنْ أَعْقَابِهِ وَهُوَ مُسْتَقِيمُ الْحَدِيثِ إِلَّا أَنَّ الشَّيْخَيْنِ لَمْ يُخَرِّجَا عَنْهُ وَإِنَّمَا جَعَلْتُ حَدِيثَهُ هَذَا شَاهِدًا لِمَا تَقَدَّمَ»