Hadithcore
Sahih Muslim, 1898 b
sahih

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 Prophet). (At this). the words:" other than those who have a trouble (illness)" were revealed.

وَحَدَّثَنَا أَبُو كُرَيْبٍ، حَدَّثَنَا ابْنُ بِشْرٍ، عَنْ مِسْعَرٍ، حَدَّثَنِي أَبُو إِسْحَاقَ، عَنِ الْبَرَاءِ، قَالَ لَمَّا نَزَلَتْ ‏{‏ لاَ يَسْتَوِي الْقَاعِدُونَ مِنَ الْمُؤْمِنِينَ‏}‏ كَلَّمَهُ ابْنُ أُمِّ مَكْتُومٍ فَنَزَلَتْ ‏{‏ غَيْرُ أُولِي الضَّرَرِ‏}‏

References2 variants
In-Book Reference
Book 33, Hadith 207
USC-MSA web (English) reference
Book 20, Hadith 4677 (deprecated numbering scheme)