Sulayman ibn Yasar reported that Sayyidina Abu Hurayrah Ibn Abbas and Abu Salamah ibn Abdur Rahman (RA) discussed about a pregnant woman whose husband had died and who delivers her child after his death. Ibn Abbas (RA) said, “The lengthier period will be her iddah (meaning, her waiting period will end on the birth of her child or completing of iddah whichever is last). Abu Salamah (RA) said, “No, she will become lawful when her child is born.” Abu Hurayrah (RA) said, “I agree with my brother, Abu Salamah.” Then, they sent (the question) to Sayyidah Umm Salamah, the noble wife of the Prophet (SAW). She said, “Suhay’ah Aslamiyah had delivered a child a few days after her husband’s death. She enquired from Allah’s Messenger (SAW) who commanded her to get married again.”
[Bukhari 4909, Muslim 1485, Nisai 3509]