It is narrated from Hazrat Ubayy bin Ka'b (may Allah be pleased with him) that once I had a difference of opinion with Hazrat Umar (may Allah be pleased with him) regarding the ruling if a woman's husband passes away and she is pregnant. My opinion was that when she gives birth to the child, she can marry again. Upon this, my mother of the child, Umm Tufail, said to Hazrat Umar (may Allah be pleased with him) and me that the Prophet (peace and blessings of Allah be upon him) had instructed Sabi'ah Aslamiyyah that when she gives birth to the child, she can marry again.
It is narrated from Hazrat Umm Tufail (may Allah be pleased with her), "who was the wife of Hazrat Ubayy bin Ka'b (may Allah be pleased with him)," that she heard Hazrat Umar bin al-Khattab (may Allah be pleased with him) and Hazrat Ubayy bin Ka'b (may Allah be pleased with him) disputing (about a pregnant woman whose husband passes away). Umm Tufail said: Why does Hazrat Umar bin al-Khattab (may Allah be pleased with him) not ask Sabi'ah Aslamiyyah? Her husband passed away while she was pregnant, then a few days later she gave birth, and the Prophet (peace and blessings be upon him) married her off.