Al-Nufayli reported that she said, "The Prophet ﷺ would pass by a sick person while he was in seclusion (itikaf), and he would continue on his way without turning aside to ask about him."Ibn Isa reported that she said, "The Prophet ﷺ would visit the sick while he was in seclusion."
حدثنا عبد الله بن محمد النفيلي ومحمد بن عيسى قالا حدثنا عبد السلام بن حرب أخبرنا الليث بن أبي سليم عن عبد الرحمن بن القاسم عن أبيه
النفيلي قالت كان النبي ﷺ يمر بالمريض وهو معتكف فيمر كما هو ولا يعرج يسأل عنه وقال ابن عيسى قالت إن كان النبي ﷺ يعود المريض وهو معتكف
No references are available.
[Its chain is daif] Bayhaqi (4/321) reported it from the hadith of Abu Dawud through the same chain. Layth bin Abu Salim was mentioned previously, hadith: 132, 1006.