Mishkat al-Masabih 2106
وَعَن عَائِشَة رَضِي الله عَنْهَا قَالَتْ: السُّنَّةُ عَلَى الْمُعْتَكِفِ أَنْ لَا يَعُودَ مَرِيضًا وَلَا يَشْهَدُ جِنَازَةً وَلَا يَمَسُّ الْمَرْأَةَ وَلَا يُبَاشِرُهَا وَلَا يَخْرُجُ لِحَاجَةٍ إِلَّا لِمَا لابد مِنْهُ وَلَا اعْتِكَافَ إِلَّا بِصَوْمٍ وَلَا اعْتِكَافَ إِلَّا فِي مَسْجِدٍ جَامِعٍ. رَوَاهُ أَبُو دَاوُدَ
From ʿAʾishah, may Allah be pleased with her, who said: The Sunnah for the one in iʿtikaf is that he does not visit a sick person, does not attend a funeral, does not touch a woman or be intimate with her, and does not go out for any need except what is unavoidable. There is no iʿtikaf except with fasting, and there is no iʿtikaf except in a congregational mosque. Reported by Abu Dawud.