The Messenger of Allah ﷺ said, "When a man comes to visit a sick person, let him say, 'O Allah, heal Your servant, that he may strike down an enemy for You, or walk to a funeral for You.'"
قال رسول الله ﷺ: إذا جاء الرجل يعود مريضا فليقل: اللهم اشف عبدك ينكأ لك عدوا، أو يمشي لك إلى جنازة.
Abu Dawud (3107) narrated it from Yazid bin Khalid Ramli, who said, "Ibn Wahb told us, from Huyayy bin Abdullah, from Abu Abdul-Rahman Hubli, from Ibn Amr," and he mentioned it.Ibn Hibban (2974) and Hakim (1/344, 549) both graded it sahih, both transmitting it through the route of Ibn Wahb in a similar wording, except that they said, "or walk for you to prayer." Hakim said in the first instance, "Sahih according to the criterion of Muslim." And he said in the second instance, "A Egyptian hadith with a sahih isnad."I say, its isnad is hasan because of Huyayy bin Abdullah, for Ahmad, Bukhari, and Nasai spoke critically of him, while others regarded him as acceptable. Ibn Main said, "There is no harm in him." Ibn Adi said, "I hope there is no harm in him." And Ibn Hibban mentioned him among the trustworthy narrators. A narrator of this standing has his hadith graded hasan so long as he does not bring something objectionable, and no error occurs from him.The hadith has other chains of transmission, and the one I have mentioned is the soundest of them. His saying "yankaa" means that wounds and killing become frequent among them. There are other hadiths on this subject that will come in the Book of Medicine.