When the verse "Not equal are those believers who sit at home" [Nisa 4:95] was revealed, the Messenger of Allah ﷺ said, "Call Zayd for me, and let him come with the tablet, the inkwell, and the shoulder-blade," or, "the shoulder-blade and the inkwell."Then he said, "Write, 'Not equal are those believers who sit at home and those who strive in the cause of Allah.'"Behind the Prophet ﷺ stood Amr bin Umm Maktum, who was blind. He said, "Messenger of Allah, what do you command me to do, for I am a man whose sight is impaired?"So in its place was revealed, "Not equal are those believers who sit at home, other than those who have a disability" [Nisa 4:95].
لما نزلت {لا يستوي القعدون من المؤمنين} [سورة النساء: ٩٥] قال رسول الله ﷺ: ادع لي زيدا وليجيء معه باللوح والدواة والكثف-أو الكتف والدواة- ثم قال: اكتب: لا يستوي القاعدون من المؤمنين والمجاهدون في سبيل الله قال: وخلف ظهر النبي ﷺ عمرو بن أم مكتوم الأعمى، قال: يا رسول الله فما تأمرني، فإني رجل ضرير البصر؟ فنزلت مكانها: {لا يستوي القعدون من المؤمنين غير أولي الضرر}.
Bukhari narrated it in the Virtues of the Quran (4990) from Ubaydullah bin Musa, from Israil, from Abu Ishaq, from Bara, and he related it. Muslim narrated it in the Leadership (1898) through another route from Abu Ishaq in abridged form, and it will come in its place.