I was ill, and the Messenger of Allah ﷺ passed by me while I was saying, "O Allah, if my appointed time has come, then grant me relief. If it is delayed, then raise my station. If this is a trial, then grant me patience."The Messenger of Allah ﷺ asked, "What did you just say?"So he repeated to him what he had said. Then he nudged him with his foot and said, "O Allah, grant him well-being," or "heal him." Shuba was the one uncertain about which word was used.After that, I never suffered from that ailment again.
حدثنا محمد بن المثنى حدثنا محمد بن جعفر حدثنا شعبة عن عمرو بن مرة عن عبد الله بن سلمة
كنت شاكيا فمر بي رسول الله ﷺ وأنا أقول اللهم إن كان أجلي قد حضر فأرحني وإن كان متأخرا فارفغني وإن كان بلاء فصبرني فقال رسول الله ﷺ كيف قلت قال فأعاد عليه ما قال قال فضربه برجله فقال اللهم عافه أو اشفه شعبة الشاك فما اشتكيت وجعي بعد
[Its isnad is hasan]. Nasai narrated it in Amal al-Yawm wal-Layla, no. 1058, from the hadith of Shubah, with the same wording. Ibn Hajar and Ibn Hibban graded it sahih, no. 2209, and Hakim, 2/620, 621, said it meets the standard of the two Shaykhs, and Dhahabi agreed with him.Abdullah bin Salama narrated this before his memory became confused, as I have verified in my takhrij of Musnad Humaydi.