Mishkat al-Masabih 1571
وَعَن عَامر الرام قَالَ: ذَكَرَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْأَسْقَامَ فَقَالَ: «إِنَّ الْمُؤْمِنَ إِذَا أَصَابَهُ السقم ثمَّ أَعْفَاهُ الله مِنْهُ كَانَ كَفَّارَةً لِمَا مَضَى مِنْ ذُنُوبِهِ وَمَوْعِظَةً لَهُ فِيمَا يَسْتَقْبِلُ. وَإِنَّ الْمُنَافِقَ إِذَا مرض ثمَّ أعفي كَانَ كالبعير عَقَلَهُ أَهْلُهُ ثُمَّ أَرْسَلُوهُ فَلَمْ يَدْرِ لِمَ عقلوه وَلم يدر لم أَرْسَلُوهُ» . فَقَالَ رَجُلٌ يَا رَسُولَ اللَّهِ وَمَا الْأَسْقَامُ؟ وَاللَّهِ مَا مَرِضْتُ قَطُّ فَقَالَ: «قُمْ عَنَّا فلست منا» . رَوَاهُ أَبُو دَاوُد
From ʿAmir ar-Ram, who said: The Messenger of Allah ﷺ mentioned illnesses and said: "When the believer is afflicted with illness and then Allah relieves him of it, it is an expiation for his past sins and an admonition for him for what is to come. And when the hypocrite falls ill and is then relieved, he is like a camel whose owners tied it up and then let it go: it does not know why they tied it up nor why they let it go." A man said: "O Messenger of Allah, what are illnesses? By Allah, I have never been ill." He said: "Get up and leave us, for you are not one of us." Reported by Abu Dawud.