Sahih al-Bukhari 5318
Yahya bin Bukair narrated to us that Laith (bin Sa'd) told us. He narrated from Ja'far bin Rabi'ah, Ja'far from Abdur Rahman bin Hurmuz A'raj. He said: Abu Salamah bin Abdur Rahman told me that Zainab bint Abi Salamah told him, narrating from her mother Hazrat Umm Salamah (ra), the wife of the Prophet (saw), that a woman of (the tribe of) Aslam who was called Subai'ah (ra) was married to a husband who died leaving her at a time when she was pregnant. And Abu Sanabil bin Ba'kak sent her a proposal of marriage. She refused to marry him. Abu Sanabil said: By God, it is not right for you to marry until you have completed whichever of the two waiting periods (Iddah) is the longer. (Hearing this) she waited for about ten nights. After that she came to the Prophet (saw). He (saw) said: “Marry.”
AI-translated by Islam-Today
Book 39: "For those who are pregnant, their 'Idda is until they laydown their burdens."