Abdullah bin Abu Awfa reported,

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."

Ibn Majah 1384

Daif

حدثنا سويد بن سعيد حدثنا أبو عاصم العباداني عن فائد بن عبد الرحمن

عن عبد الله بن أبي أوفى الأسلمي قال

خرج علينا رسول الله ﷺ فقال من كانت له حاجة إلى الله أو إلى أحد من خلقه فليتوضأ وليصل ركعتين ثم ليقل لا إله إلا الله الحليم الكريم سبحان الله رب العرش العظيم الحمد لله رب العالمين اللهم إني أسألك موجبات رحمتك وعزائم مغفرتك والغنيمة من كل بر والسلامة من كل إثم أسألك ألا تدع لي ذنبا إلا غفرته ولا هما إلا فرجته ولا حاجة هي لك رضا إلا قضيتها لي ثم يسأل الله من أمر الدنيا والآخرة ما شاء فإنه يقدر

ابن ماجه 1384ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Prayer of need
Numbering
Darussalam 1384
Ibn Majah 1384