The Prophet ﷺ taught me a healing invocation and instructed me to recite it over whomever I wished. He said, "Say, 'Our Lord Allah, who is in the heavens, hallowed be Your name. Your command prevails in the heavens and the earth. O Allah, just as Your mercy prevails in the heavens, place Your mercy upon us in the earth. O Allah, Lord of the pure ones, forgive us our offenses, our sins, and our errors. Send down a mercy from Your mercy and a healing from Your healing upon what so-and-so suffers of illness, that he may be cured.'"He said, "Recite this three times, then seek refuge with the two surahs of refuge three times."
حدثنا أبو اليمان قال حدثنا أبو بكر يعني ابن أبي مريم عن الأشياخ
علمني النبي ﷺ رقية وأمرني أن أرقي بها من بدا لي قال قل ربنا الله الذي في السموات تقدس اسمك أمرك في السماء والأرض اللهم كما أمرك في السماء فاجعل رحمتك علينا في الأرض اللهم رب الطيبين اغفر لنا حوبنا وذنوبنا وخطايانا ونزل رحمة من رحمتك وشفاء من شفائك على ما بفلان من شكوى فيبرأ قال وقل ذلك ثلاثا ثم تعوذ بالمعوذتين ثلاث مرات
Its chain of transmission is daif, due to the anonymity of the narrator from Fadala, though it could have been graded hasan or sahih, because when a trustworthy narrator transmits from many people, his hadith is considered sahih. However, Abu Bakr bin Abu Maryam is daif. Hakim graded it sahih in 1/343, but Dhahabi disagreed with him regarding Ziyad bin Muhammad, a man in his chain, and it is found in Abu Dawud, 4/12, number 3892.