Miswar bin Makhrama reported,

Subayah al-Aslamiyyah gave birth a few nights after her husband's death. She came to the Prophet ﷺ and sought his permission to remarry. He granted her permission, and she married.

Bukhari 5320

Sahih

حدثنا يحيى بن قزعة حدثنا مالك عن هشام بن عروة عن أبيه

عن المسور بن مخرمة

أن سبيعة الأسلمية نفست بعد وفاة زوجها بليال فجاءت النبي ﷺ فاستأذنته أن تنكح فأذن لها فنكحت

البخاري 5320صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Divorce
Chapter
And for those who are pregnant, their term is until they deliver their burden
Numbering
Darussalam 5320
Bukhari 5320