It is narrated from Hazrat Amrah bint Abdur Rahman that when Sayyidah Aisha (may Allah be pleased with her) performed i'tikaf, she would not visit the sick except while walking, and she would not stop (to sit).
Imam Malik, may Allah have mercy on him, said: Whoever performs i'tikaf should not go out for any work, nor go anywhere, nor help anyone, except for a necessary need. And if it were permissible for the person in i'tikaf to go out for any work, then it would have been permissible for him to go out to visit the sick, or for the funeral prayer, or for burial.
Imam Malik, may Allah have mercy on him, said: I'tikaf is not valid unless the person observing i'tikaf refrains from visiting the sick or attending funeral prayers in people's homes, and does not go out except for a necessary need.
Hadith Referenceموطا امام مالك رواية يحييٰ / كتاب الاعتكاف / 645