وَلَمْ أَسْمَعْ أَحَدًا يَكْرَهُ لِلْمُعْتَكِفِ وَلَا لِلْمُعْتَكِفَةِ أَنْ يَنْكِحَا فِي اعْتِكَافِهِمَا. مَا لَمْ يَكُنِ الْمَسِيسُ. فَيُكْرَهُ. وَلَا يُكْرَهُ لِلصَّائِمِ أَنْ يَنْكِحَ فِي صِيَامِهِ ، وَفَرْقٌ بَيْنَ نِكَاحِ الْمُعْتَكِفِ ، وَنِكَاحِ الْمُحْرِمِ. أَنَّ الْمُحْرِمَ يَأْكُلُ وَيَشْرَبُ ، وَيَعُودُ الْمَرِيضَ ، وَيَشْهَدُ الْجَنَائِزَ ، وَلَا يَتَطَيَّبُ. وَالْمُعْتَكِفُ وَالْمُعْتَكِفَةُ يَدَّهِنَانِ ، وَيَتَطَيَّبَانِ ، وَيَأْخُذُ كُلُّ وَاحِدٍ مِنْهُمَا مِنْ شَعَرِهِ ، وَلَا يَشْهَدَانِ الْجَنَائِزَ ، وَلَا يُصَلِّيَانِ عَلَيْهَا ، وَلَا يَعُودَانِ الْمَرِيضَ ، فَأَمْرُهُمَا فِي النِّكَاحِ مُخْتَلِفٌ
Imam Malik, may Allah have mercy on him, said: I have not heard from anyone who prohibits that a man in i'tikaf or a woman in i'tikaf may contract marriage during i'tikaf, however, it is necessary that they do not have intercourse. Similarly, it is permissible for a fasting person to contract marriage while fasting, and there is a difference between a person in i'tikaf and a person in ihram, that is, one who has assumed ihram for Hajj or Umrah: the person in ihram eats and drinks, visits the sick, attends funerals, and does not apply perfume. But the person in i'tikaf may apply perfume, use oil, and if he wishes, cut his hair, but he should not go with the funeral procession, nor should he perform the funeral prayer, nor visit the sick. Thus, their rulings are also different regarding marriage.