Subai'a Al-Aslamiya gave birth to a child a few days after the death of her husband. She came to the Prophet and asked permission to remarry, and the Prophet ﷺ gave her permission, and she got married. (Using translation from Bukhārī 5320)
أَنَّ سُبَيْعَةَ الْأَسْلَمِيَّةَ نُفِسَتْ بَعْدَ وَفَاةِ زَوْجِهَا بِلَيَالٍ فَجَاءَتْ رَسُولَ اللهِ ﷺ «فَاسْتَأْذَنَتْهُ أَنْ تَنْكِحَ فَأَذِنَ لَهَا فَنَكَحَتْ»