Surah At-Talaq, ayah 6

65:6

أَسۡكِنُوهُنَّ مِنۡ حَيۡثُ سَكَنتُم مِّن وُجۡدِكُمۡ وَلَا تُضَآرُّوهُنَّ لِتُضَيِّقُواْ عَلَيۡهِنَّۚ وَإِن كُنَّ أُوْلَٰتِ حَمۡلٖ فَأَنفِقُواْ عَلَيۡهِنَّ حَتَّىٰ يَضَعۡنَ حَمۡلَهُنَّۚ فَإِنۡ أَرۡضَعۡنَ لَكُمۡ فَـَٔاتُوهُنَّ أُجُورَهُنَّ وَأۡتَمِرُواْ بَيۡنَكُم بِمَعۡرُوفٖۖ وَإِن تَعَاسَرۡتُمۡ فَسَتُرۡضِعُ لَهُۥٓ أُخۡرَىٰ ٦

Askinūhunna min haythu sakantum min wujdikum walā tudārrūhunna litudayyiqū 'alayhinna wa in kunna ulāti hamlin fa anfiqū 'alayhinna hattā yada'na hamlahunna fa in arda'na lakum fa'ātūhunna ujūrahunna wa tamirū baynakum bima'rūfin wa in ta'āsartum fasaturdi'u lahū ukhrā

Lodge them1701 [in a section] of where you dwell out of your means and do not harm them in order to oppress them.1702 And if they should be pregnant, then spend on them until they give birth. And if they breastfeed for you, then give them their payment and confer among yourselves in the acceptable way; but if you are in discord, then there may breastfeed for him [i.e., the father] another woman.1703

Footnotes

1701 During their waiting period (referring to wives whose divorce has been pronounced).

1702 So that they would be forced to leave or to ransom themselves.

1703 See 2:233.