Surah An-Nisa, ayah 19

4:19

يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُواْ لَا يَحِلُّ لَكُمۡ أَن تَرِثُواْ ٱلنِّسَآءَ كَرۡهٗاۖ وَلَا تَعۡضُلُوهُنَّ لِتَذۡهَبُواْ بِبَعۡضِ مَآ ءَاتَيۡتُمُوهُنَّ إِلَّآ أَن يَأۡتِينَ بِفَٰحِشَةٖ مُّبَيِّنَةٖۚ وَعَاشِرُوهُنَّ بِٱلۡمَعۡرُوفِۚ فَإِن كَرِهۡتُمُوهُنَّ فَعَسَىٰٓ أَن تَكۡرَهُواْ شَيۡـٔٗا وَيَجۡعَلَ ٱللَّهُ فِيهِ خَيۡرٗا كَثِيرٗا ١٩

Yā'ayyuhal-ladhīna āmanū lā yahillu lakum an tarithun-nisā'a karhan walā ta'dulūhunna litadhhabū biba'di mā ātaytumūhunna illā an ya'tīna bifāhishatim mubayyinatin wa'āshirūhunna bil-ma'rūfi fa in karihtumūhunna fa'asā an takrahū shay'an wayaj'alallāhu fīhi khayran kathīrā

O you who have believed, it is not lawful for you to inherit women by compulsion.173 And do not make difficulties for them in order to take [back] part of what you gave them174 unless they commit a clear immorality [i.e., adultery]. And live with them in kindness. For if you dislike them - perhaps you dislike a thing and Allāh makes therein much good.

Footnotes

173 The deceased man's heirs have no rights of marriage or otherwise over his widow.

174 At the time of marriage as mahr.