USC-MSA web (English) : Book 19, Hadith 2
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ عَمْرَةَ بِنْتِ عَبْدِ الرَّحْمَنِ، أَنَّ عَائِشَةَ، كَانَتْ إِذَا اعْتَكَفَتْ لاَ تَسْأَلُ عَنِ الْمَرِيضِ إِلاَّ وَهِيَ تَمْشِي لاَ تَقِفُ .
Yahya related to me from Malik from Ibn Shihab from Amra bint Abd ar-Rahman that when A'isha was doing itikaf she would only ask after sick people if she was walking and not if she was standing still. Malik said, "A person doing itikaf should not carry out obligations of his, nor leave the mosque for them, nor should he help anyone. He should only leave the mosque to relieve himself. If he were able to go out to do things for people, visiting the sick, praying over the dead and following funeral processions would be the things with the most claim on his coming out." Malik said, "A person doing itikaf is not doing itikaf until he avoids what some one doing itikaf should avoid, namely, visiting the sick, praying over the dead, and entering houses, except to relieve himself."
Full reference and source
USC-MSA web (English) : Book 19, Hadith 2 Arabic : Book 19, Hadith 694
View source on Sunnah.com (opens in a new tab)