كتاب الإمارة
33  
The Book on Government
(40)
Chapter: The duty of Jihad is waived for those who have excuses
(40)
باب سُقُوطِ فَرْضِ الْجِهَادِ عَنِ الْمَعْذُورِينَ، ‏‏
Sahih Muslim 1898 b

It has been narrated on the authority of Bara' who said:

When the Qur'anic verse:" Those who sit (at home) from among mu'min" (iv. 94) was revealed, the son of Umm Maktum spoke to him (the Holy Prophet). (At this). the words:" other than those who have a trouble (illness)" were revealed.
وَحَدَّثَنَا أَبُو كُرَيْبٍ، حَدَّثَنَا ابْنُ بِشْرٍ، عَنْ مِسْعَرٍ، حَدَّثَنِي أَبُو إِسْحَاقَ، عَنِ الْبَرَاءِ، قَالَ لَمَّا نَزَلَتْ ‏{‏ لاَ يَسْتَوِي الْقَاعِدُونَ مِنَ الْمُؤْمِنِينَ‏}‏ كَلَّمَهُ ابْنُ أُمِّ مَكْتُومٍ فَنَزَلَتْ ‏{‏ غَيْرُ أُولِي الضَّرَرِ‏}
Reference : Sahih Muslim 1898b
In-book reference : Book 33, Hadith 207
USC-MSA web (English) reference : Book 20, Hadith 4677
  (deprecated numbering scheme)