Muwatta Imam Malik Book of I'tikaf in Ramadan, Hadith 2

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."

وَحَدَّثَنِي عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ عَمْرَةَ بِنْتِ عَبْدِ الرَّحْمَنِ، أَنَّ عَائِشَةَ، كَانَتْ إِذَا اعْتَكَفَتْ لاَ تَسْأَلُ عَنِ الْمَرِيضِ إِلاَّ وَهِيَ تَمْشِي لاَ تَقِفُ .