Sure An-Nisaa

4:128

وَإِنِ ٱمْرَأَةٌ خَافَتْ مِنۢ بَعْلِهَا نُشُوزًا أَوْ إِعْرَاضًۭا فَلَا جُنَاحَ عَلَيْهِمَآ أَن يُصْلِحَا بَيْنَهُمَا صُلْحًۭا ۚ وَٱلصُّلْحُ خَيْرٌۭ ۗ وَأُحْضِرَتِ ٱلْأَنفُسُ ٱلشُّحَّ ۚ وَإِن تُحْسِنُوا۟ وَتَتَّقُوا۟ فَإِنَّ ٱللَّهَ كَانَ بِمَا تَعْمَلُونَ خَبِيرًۭا

Und wenn eine Frau von ihrem Ehemann Widersetzlichkeit oder Meidung befürchtet, so ist es keine Sünde für sie (beide), sich in Frieden zu einigen; denn friedliche Einigung ist besser. Und die Seelen sind der Habsucht zugänglich. Doch wenn ihr wohltätig seid und gottesfürchtig, so ist Allah dessen, was ihr tut, gewiß Kundig.

Tafsir 4:128

If a woman fears that her husband will ignore her and lose interest in her, there is no sin in them reaching a compromise where the woman gives up some of the rights due to her, such as maintenance and accommodation. In such a case, reconciliation is better than divorce. Souls have been naturally created with greed and miserliness, and will not be keen to give up any right. The couple should, therefore, deal with this characteristic by training the soul to be forgiving and generous. If you do good in your affairs and are mindful of Allah, by fulfilling His instructions and avoiding His prohibitions, then Allah knows what you do. Nothing is hidden from Him and He will reward you accordingly.