عَن عثمانَ بنِ حُنَيفٍ قَالَ: إِنَّ رَجُلًا ضَرِيرَ الْبَصَرِ أَتَى النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: ادْعُ اللَّهَ أَنْ يُعَافِيَنِي فَقَالَ: «إِنْ شِئْتَ دَعَوْتُ وَإِنْ شِئْتَ صَبَرْتَ فَهُوَ خَيْرٌ لَكَ» . قَالَ: فَادْعُهُ قَالَ: فَأَمَرَهُ أَنْ يَتَوَضَّأَ فَيُحْسِنَ الْوُضُوءَ وَيَدْعُو بِهَذَا الدُّعَاءِ: «اللَّهُمَّ إِنِّي أَسْأَلُكَ وَأَتَوَجَّهُ إِلَيْكَ بِنَبِيِّكَ مُحَمَّدٍ نَبِيِّ الرَّحْمَةِ إِنِّي تَوَجَّهْتُ بِكَ إِلَى رَبِّي لِيَقْضِيَ لِي فِي حَاجَتِي هَذِهِ اللهُمَّ فشفّعْه فيَّ» . رَوَاهُ التِّرْمِذِيُّ وَقَالَ: هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ غَرِيب
Translation
Anas told of God’s messenger visiting a Muslim who had become as weak as a chicken and asking him whether he had been accustomed to make any supplication to God or ask Him for anything. On his replying that he had, for he was accustomed to say, "O God, what Thou meanest to punish me with in the next world inflict on me beforehand in this world," God’s messenger said, “Glory be to God! You are not capable of it or able to endure it.” He then asked why he had not said, "O God bring us blessing in this world, blessing in the next, and guard us from the punishment of hell." [Anas] said
The man used it in supplication to God, and God healed him. Muslim transmitted it.