236لَّا جُنَاحَ عَلَيْكُمْ إِن طَلَّقْتُمُ ٱلنِّسَآءَ مَا لَمْ تَمَسُّوهُنَّ أَوْ تَفْرِضُوا۟ لَهُنَّ فَرِيضَةً ۚ وَمَتِّعُوهُنَّ عَلَى ٱلْمُوسِعِ قَدَرُهُۥ وَعَلَى ٱلْمُقْتِرِ قَدَرُهُۥ مَتَـٰعًۢا بِٱلْمَعْرُوفِ ۖ حَقًّا عَلَى ٱلْمُحْسِنِينَ
237وَإِن طَلَّقْتُمُوهُنَّ مِن قَبْلِ أَن تَمَسُّوهُنَّ وَقَدْ فَرَضْتُمْ لَهُنَّ فَرِيضَةً فَنِصْفُ مَا فَرَضْتُمْ إِلَّآ أَن يَعْفُونَ أَوْ يَعْفُوَا۟ ٱلَّذِى بِيَدِهِۦ عُقْدَةُ ٱلنِّكَاحِ ۚ وَأَن تَعْفُوٓا۟ أَقْرَبُ لِلتَّقْوَىٰ ۚ وَلَا تَنسَوُا۟ ٱلْفَضْلَ بَيْنَكُمْ ۚ إِنَّ ٱللَّهَ بِمَا تَعْمَلُونَ بَصِيرٌ
[236-237] It is no sin if you divorce your wives while you have not yet touched them or fixed any dower for them. In such a case, pay them something anyhow.260 A rich man should pay fairly according to his means and a poor man according to his resources, for this is an obligation on the righteous people. In case you fixed a dower for them and then divorced them before you touched them, you should pay half of the fixed dower. But there is no harm if the woman agrees to forego it or the man, in whose hands is the marriage tie, is generous enough (to pay the dower in full). And if you (men) act generously, it is akin to piety. Do not forget to show generosity in your dealings261 with one another for Allah sees what you do.
260After all some harm is done to the woman when the marital relation is broken even under such a condition. Therefore some compensation, according to one's means, must be paid.
261That is mutual generosity in dealings is essential for the harmony and betterment of human relations. Social life can never be happy if each and every person insists on his own legal rights.