وَٱلَّذِينَ يُتَوَفَّوْنَ مِنكُمْ وَيَذَرُونَ أَزْوَٰجًا وَصِيَّةً لِّأَزْوَٰجِهِم مَّتَـٰعًا إِلَى ٱلْحَوْلِ غَيْرَ إِخْرَاجٍ ۚ فَإِنْ خَرَجْنَ فَلَا جُنَاحَ عَلَيْكُمْ فِى مَا فَعَلْنَ فِىٓ أَنفُسِهِنَّ مِن مَّعْرُوفٍ ۗ وَٱللَّهُ عَزِيزٌ حَكِيمٌ
wa-alladhīna yutawaffawna minkum wayadharūna azwājan waṣiyyatan li-azwājihim matāʿan ilā l-ḥawli ghayra ikh'rājin fa-in kharajna falā junāḥa ʿalaykum fī mā faʿalna fī anfusihinna min maʿrūfin wal-lahu ʿazīzun ḥakīmun
If any of you die and leave widows, make a bequest for them: a year’s maintenance and no expulsion from their homes [for that time]. But if they leave of their own accord, you will not be blamed for what they may reasonably choose to do with themselves: God is almighty and wise.
And those of you who die and leave behind wives should bequeath for their wives a year’s maintenance and residence without turning them out, but if they (wives) leave, there is no sin on you for that which they do of themselves, provided it is honourable (e.g. lawful marriage). And Allâh is All-Mighty, All-Wise.