قَالَ مَالِك: لَا يَكُونُ الْمُعْتَكِفُ مُعْتَكِفًا ، حَتَّى يَجْتَنِبَ مَا يَجْتَنِبُ الْمُعْتَكِفُ مِنْ عِيَادَةِ الْمَرِيضِ ، وَالصَّلَاةِ عَلَى الْجَنَائِزِ ، وَدُخُولِ الْبَيْتِ إِلَّا لِحَاجَةِ الْإِنْسَانِ
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.