Yahya related to me from Malik from Ibn Shihab from Amra bint Abdar-Rahman that when A'isha was doing itikaf she would only ask aftersick people if she was walking and not if she was standing still.Malik said, "A person doing itikaf should not carry outobligations of his, nor leave the mosque for them, nor should he helpanyone. He should only leave the mosque to relieve himself. If he wereable to go out to do things for people, visiting the sick, prayingover the dead and following funeral processions would be the thingswith the most claim on his coming out."Malik said, "A persondoing itikaf is not doing itikaf until he avoids what some one doingitikaf should avoid, namely, visiting the sick, praying over the dead,and entering houses, except to relieve himself."
USC-MSA web (English) reference: Book 19, Hadith 2
Arabic reference: Book 19, Hadith 694