The Messenger of Allah ﷺ came out to us and said, "Whoever has a need from Allah or from any of His creation, let him perform ablution and pray two rakahs, 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. O Allah, I ask You for that which brings about Your mercy, and the means of Your forgiveness, a share of every righteousness, and safety from every sin. I ask You not to leave any sin of mine except that You forgive it, nor any worry except that You relieve it, nor any need that pleases You except that You fulfill it for me.' Then let him ask Allah for whatever he wishes of the affairs of this world and the next, for it shall be decreed."
حدثنا سويد بن سعيد حدثنا أبو عاصم العباداني عن فائد بن عبد الرحمن
خرج علينا رسول الله ﷺ فقال من كانت له حاجة إلى الله أو إلى أحد من خلقه فليتوضأ وليصل ركعتين ثم ليقل لا إله إلا الله الحليم الكريم سبحان الله رب العرش العظيم الحمد لله رب العالمين اللهم إني أسألك موجبات رحمتك وعزائم مغفرتك والغنيمة من كل بر والسلامة من كل إثم أسألك ألا تدع لي ذنبا إلا غفرته ولا هما إلا فرجته ولا حاجة هي لك رضا إلا قضيتها لي ثم يسأل الله من أمر الدنيا والآخرة ما شاء فإنه يقدر
Chain of transmission its isnad is extremely daif. Tirmidhi transmitted it in Witr, chapter on what has been said about the prayer of need, no. 479, from the hadith of Faid, through him, and he said, "This is an unfamiliar (gharib) hadith, and there is criticism regarding its chain." See no. 416 for its defect.