This commentary covers verses 2:240 to 2: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:
وَلَهُنَّ الرُّبُعُ مِمَّا تَرَكْتُمْ إِن لَّمْ يَكُنْ لَّكُمْ وَلَدٌ فَإِن كَانَ لَكُمْ وَلَدٌ فَلَهُنَّ الثُّمُنُ مِمَّا تَرَكْتُم
(In that which you leave, their (your wives') share is a fourth if you leave no child; but if you leave a child, they get an eighth of that which you leave.) (4:12)
So Allah…