وَلِلْمُطَلَّقَٰتِ مَتَٰعٌۢ بِٱلْمَعْرُوفِ ۖ حَقًّا عَلَى ٱلْمُتَّقِينَ
And for divorced women is a provision according to what is acceptable - a duty upon the righteous.
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 honorable (e.g., lawful marriage). And Allah is All-Mighty, All-Wise (240)And for divorced women, maintenance (should be provided) on reasonable (scale). This is a duty on Al-Muttaqin (the pious)(241)Thus Allah makes clear His Ayat (Laws) to you, in order that you may understand (242)
Ayah (2:240) was abrogated
The majority of the scholars said that this Ayah (2:240) was abrogated by the Ayah (2:234), what Allah said:
يَتَرَبَّصْنَ بِأَنفُسِهِنَّ أَرْبَعَةَ أَشْهُرٍ وَعَشْرًا
(...they (the wives) shall wait (as regards their marriage) for four months and ten days.)(2:234)
For instance, Al-Bukhari reported that Ibn Az-Zubayr said: I said to 'Uthman bin 'Affan:
وَالَّذِينَ يُتَوَفَّوْنَ مِنكُمْ وَيَذَرُونَ أَزْوَاجًا
(And those of you who die and leave wives behind them) was abrogated by the other Ayah (2:234). Therefore, why did you collect it (meaning, in the Qur'an)?" He said, "O my nephew! I shall not change any part of the Qur'an from its place."
The question that Ibn Az-Zubayr asked 'Uthman means: 'If the ruling of the Ayah (2:240) was abrogated to four months (the 'Iddah of the widow, and refer to 2:234), then what is the wisdom behind including it in the Qur'an, although its ruling has been abrogated? If the Ayah (2:240) remains (in the Qur'an) after the Ayah that abrogated it (2:234), this might imply that its ruling is still valid.' 'Uthman, the Leader of the faithful, answered him by stating that this is a matter of the revelation, which mentioned these Ayat in this order. 'Therefore, I shall leave the Ayah where I found it in the Qur'an.'
Ibn Abu Hatim reported that Ibn 'Abbas said about what Allah said:
وَالَّذِينَ يُتَوَفَّوْنَ مِنكُمْ وَيَذَرُونَ أَزْوَاجًا وَصِيَّةً لِّأَزْوَاجِهِم مَّتَاعًا إِلَى الْحَوْلِ غَيْرَ إِخْرَاجٍ
(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,) "The widow used to reside, and have her provisions provided for her for a year, in her deceased husband's house. Later, the Ayah that specified the inheritance (4:12) abrogated this Ayah (2:240), and thus the widow inherits one-fourth or one-eighth of what her (deceased) husband leaves behind."
Ibn Abu Hatim also related that 'Ali bin Abu Talhah stated that Ibn 'Abbas said, "When a man died and left behind a widow, she used to remain in his house for a year for her 'Iddah, all the while receiving her provisions during this time. Thereafter, Allah revealed this Ayah:
وَالَّذِينَ يُتَوَفَّوْنَ مِنكُمْ وَيَذَرُونَ أَزْوَاجًا يَتَرَبَّصْنَ بِأَنفُسِهِنَّ أَرْبَعَةَ أَشْهُرٍ وَعَشْرًا
(And those of you who die and leave wives behind them, they (the wives) shall wait (as regards their marriage) for four months and ten days.)(2:234)
So, this is the 'Iddah of the widow, unless she was pregnant, for her 'Iddah then ends when she gives birth. Allah also said:
وَلَهُنَّ الرُّبُعُ مِمَّا تَرَكْتُمْ إِن لَّمْ يَكُن …