وَالَّذِينَ يُتَوَفَّوْنَ مِنكُمْ وَيَذَرُونَ أَزْوَجًا يَتَرَبَّصْنَ بِأَنفُسِهِنَّ أَرْبَعَةَ أَشْهُرٍ وَعَشْرًا فَإِذَا بَلَغْنَ أَجَلَهُنَّ فَلاَ جُنَاحَ عَلَيْكُمْ فِيمَا فَعَلْنَ فِى أَنفُسِهِنَّ بِالْمَعْرُوفِ وَاللَّهُ بِمَا تَعْمَلُونَ خَبِيرٌ
234. 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, then when they have fulfilled their term, there is no sin on you if they (the wives) dispose of themselves in a (just and) honorable manner (i.e., they can marry). And Allah is well-acquainted with what you do.  This Ayah contains a command from Allah to the wives whose husbands die, that they should observe a period of `Iddah of four months and ten nights, including the cases where the marriage was consummated or otherwise, according to the consensus (of the scholars). The proof that this ruling includes the case where the marriage was not consummated is included in the general meaning of the Ayah. In a narration recorded by Imam Ahmad and the compilers of the Sunan, which At-Tirmidhi graded Sahih, Ibn Mas`ud was asked about a man who married a woman, but he died before consummating the marriage. He also did not appoint a Mahr (dowry) for her. They kept asking Ibn Mas`ud about this subject until he said, â€I shall give you my own opinion, and if it is correct then it is from Allah, while if it is wrong it is because of my error and because of (the evil efforts of) Satan. In this case, Allah and His Messenger are innocent of my opinion. She has her full Mahr.'' In another narration, Ibn Mas`ud said, â€She has a similar Mahr to that of the women of her status, without stinginess or extravagance.'' He then continued, â€She has to spend the `Iddah and has a right to the inheritance.'' Ma`qil bin Yasar Ashja`i then stood up and said, â€I heard Allah's Messenger issue a similar judgment for the benefit of Barwa` bint Washiq.'' `Abdullah bin Mas`ud became very delighted upon hearing this statement. In another narration, several men from Ashja` (tribe) stood up and said, â€We testify that Allah's Messenger issued a similar ruling for the benefit of Barwa` bint Washiq.'' As for the case of the widow whose husband dies while she is pregnant, her term of `Iddah ends when she gives birth, even if it occurs an instant (after her husband dies). This ruling is taken from Allah's statement: