بسم الله الرحمن الرحيم
وَٱلَّذِينَ يُتَوَفَّوۡنَ مِنكُمۡ وَيَذَرُونَ أَزۡوَٲجً۬ا يَتَرَبَّصۡنَ بِأَنفُسِهِنَّ أَرۡبَعَةَ أَشۡہُرٍ۬ وَعَشۡرً۬اۖ فَإِذَا بَلَغۡنَ أَجَلَهُنَّ فَلَا جُنَاحَ عَلَيۡكُمۡ فِيمَا فَعَلۡنَ فِىٓ أَنفُسِهِنَّ بِٱلۡمَعۡرُوفِۗ وَٱللَّهُ بِمَا تَعۡمَلُونَ خَبِيرٌ۬
“Those among you who pass away and leave wives behind, their wives keep themselves waiting for four months and ten days. So, when they have reached (the end of) their waiting period, there is no sin on you in what they do for themselves in recognized manner. Allah is All-Aware of what you do. (234)”
Ruling: When the husband dies, the wife must wait an iddah of four months and 10 days. If the wife is pregnant at the time of the death of the husband, her iddah will be until she gives birth whether it is less than 4 months and ten days or more. She would be able to get married once she finishes her iddah. (Tafsir Uthmani V1 pg 248)