Mishkat al-Masabih 1555
وَعَنْ أَبِي الدَّرْدَاءِ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: مَنِ اشْتَكَى مِنْكُمْ شَيْئًا أَوِ اشْتَكَاهُ أَخٌ لَهُ فَلْيَقُلْ: رَبُّنَا اللَّهُ الَّذِي فِي السَّمَاءِ تَقَدَّسَ اسْمُكَ أَمرك فِي السَّمَاء وَالْأَرْض كَمَا أَن رَحْمَتُكَ فِي السَّمَاءِ فَاجْعَلْ رَحْمَتَكَ فِي الْأَرْضِ اغْفِرْ لَنَا حُوبَنَا وَخَطَايَانَا أَنْتَ رَبُّ الطَّيِبِينَ أَنْزِلْ رَحْمَةً مِنْ رَحْمَتِكَ وَشِفَاءً مِنْ شِفَائِكَ عَلَى هَذَا الْوَجَعِ. فَيَبْرَأُ . رَوَاهُ أَبُو دَاوُدَ
From Abu ad-Dardaʾ, who said: I heard the Messenger of Allah ﷺ say: "Whoever of you suffers from something, or his brother suffers from it, let him say: 'Our Lord is Allah, who is in the heaven. Hallowed be Your name. Your command is in the heaven and the earth. As Your mercy is in the heaven, so place Your mercy on the earth. Forgive us our sins and our errors. You are the Lord of the good. Send down a mercy from Your mercy and a healing from Your healing upon this pain.' And he will recover." Reported by Abu Dawud.