It is mentioned in the Hadith Sharif that whoever has a need from Allah Almighty should pray this prayer.
Insha Allah, his need will be fulfilled.
The method is to perform ablution properly and pray two rak’ahs of Nafl and then recite this supplication after praising Allah Almighty, that is, Surah Fatiha and Durood Sharif.

Translation: There is no god but Allah. Glory be to Allah, Lord of the Great Throne. All praise is for Allah, Lord of the worlds. I seek refuge in Him from those things which are the cause of Your mercy and forgiveness, and do not leave me any benefit from any good deed or any security from any sin. O Allah, do not leave me any sin without forgiving me, nor any grief without removing me, nor any need without fulfilling what You desire.