Abu Darda reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever among you is afflicted with something, or his brother is afflicted, then let him say: Our Lord is Allah, who is in the heavens. Holy is Your name, Your command is in the heavens and on the earth. As Your mercy is in the heavens, place Your mercy upon the earth. Forgive our mistakes and our sins. You are the Lord of all who are good. Send down mercy from your mercy, healing from Your healing, upon this pain that it might pass.”
Source: Sunan Abī Dāwūd 3892
Grade: Hasan (fair) according to Ibn Taymiyyah
عَنْ أَبِي الدَّرْدَاءِ قَالَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ اشْتَكَى مِنْكُمْ شَيْئًا أَوْ اشْتَكَاهُ أَخٌ لَهُ فَلْيَقُلْ رَبَّنَا اللَّهُ الَّذِي فِي السَّمَاءِ تَقَدَّسَ اسْمُكَ أَمْرُكَ فِي السَّمَاءِ وَالْأَرْضِ كَمَا رَحْمَتُكَ فِي السَّمَاءِ فَاجْعَلْ رَحْمَتَكَ فِي الْأَرْضِ اغْفِرْ لَنَا حُوبَنَا وَخَطَايَانَا أَنْتَ رَبُّ الطَّيِّبِينَ أَنْزِلْ رَحْمَةً مِنْ رَحْمَتِكَ وَشِفَاءً مِنْ شِفَائِكَ عَلَى هَذَا الْوَجَعِ فَيَبْرَأَ
3892 سنن أبي داود كتاب الطب باب كيف الرقى
3/139 المحدث ابن تيمية خلاصة حكم المحدث حسن في مجموع الفتاوى