Abdur Rahman ibn Ghanm reported: I was sitting closely with Umar ibn al-Khattab, may Allah be pleased with him. A man said, “O commander of the faithful, I married this woman and I accepted her condition that she would keep her house. I have settled my affairs such that I am moving residence to a new land.” Umar said, “She has her condition.” The man said, “She has ruined men! No woman wishes to divorce her husband but that she may do so?” Umar said, “The Muslims adhere to their conditions at the intersection of their rights.”
Source: Sunan Saʻīd ibn Manṣūr 633
Grade: Sahih (authentic) according to Al-Albani
Ibn Qudamah said, “When he marries her and accepts her condition that she would not be taken out of her house or her country, then she is entitled to her condition… If he marries her and accepts her condition that he will not marry another wife, then she is entitled to separate from him if he marries another wife.”
Source: al-Mughnī 6/304
عَنْ عَبْدِ الرَّحْمَنِ بْنِ غَنْمٍ قَالَ كُنْتُ جَالِسًا عِنْدَ عُمَرَ حَيْثُ تَمَسُّ رُكْبَتِي رُكْبَتَهُ فَقَالَ رَجُلٌ لِأَمِيرِ الْمُؤْمِنِينَ تَزَوَّجْتُ هَذِهِ وَشَرَطْتُ لَهَا دَارَهَا وَإِنِّي أَجْمَعُ لِأَمْرِي أَوْ لَشَأْنِي أَنِّي أَنْتَقِلُ إِلَى أَرْضِ كَذَا وَكَذَا فَقَالَ لَهَا شَرْطُهَا فَقَالَ رَجُلٌ هَلَكَتِ الرِّجَالُ إِذًا لَا تَشَاءُ امْرَأَةٌ أَنْ تُطَلِّقَ زَوْجَهَا إِلَّا طَلَّقَتْ فَقَالَ عُمَرُ الْمُسْلِمُونَ عَلَى شَرْطِهِمْ عِنْدَ مَقَاطِعِ حُقُوقِهِمْ
663 سنن سعيد بن منصور
6/304 المحدث الألباني خلاصة حكم المحدث إسناده صحيح على شرط الشيخين في إرواء الغليل
قال ابن قدامة وَإِذَا تَزَوَّجَهَا وَشَرَطَ لَهَا أَنْ لَا يُخْرِجَهَا مِنْ دَارِهَا أَوْ بَلَدِهَا فَلَهَا شَرْطُهَا … وَإِنْ تَزَوَّجَهَا وَشَرَطَ لَهَا أَنْ لَا يَتَزَوَّجَ عَلَيْهَا فَلَهَا فِرَاقُهُ إذَا تَزَوَّجَ عَلَيْهَا
7/92 المغني لابن قدامة