"While Abu Hurairah and I were with Ibn 'Abbas, a woman came and said that her husband had died while she was pregnant, then she had given birth less than four months after the day he died. Ibn 'Abbas said: '(You have to wait) for the longer of the two periods.'" Abu Salamah said: "A man from among the Companions of the Prophet told me that Subai'ah Al-Aslamiyyah came to the Messenger of Allah and said that her husband died while she was pregnant, and she gave birth less than four months after he died. The Messenger of Allah told her to get married. Abu Hurairah said: 'And I bear witness to that.'" (Using translation from Nasāʾī 3517)
تُوُفِّيَ عَنْهَا زَوْجُهَا وَهِيَ حَامِلٌ فَوَلَدَتْ لِأَدْنَى مِنْ أَرْبَعَةِ أَشْهُرٍ مِنْ يَوْمِ مَاتَ فَقَالَ ابْنُ عَبَّاسٍ ائْتِ آخِرَ الْأَجَلَيْنِ فَقَالَ أَبُو سَلَمَةَ أَخْبَرَنِي رَجُلٌ مِنْ أَصْحَابِ رَسُولِ اللهِ ﷺ أَنَّ سُبَيْعَةَ الْأَسْلَمِيَّةَ جَاءَتْ إِلَى رَسُولِ اللهِ ﷺ فَقَالَتْ تُوُفِّيَ عَنْهَا زَوْجُهَا وَهِيَ حَامِلٌ فَوَلَدَتْ لِأَدْنَى مِنْ أَرْبَعَةِ أَشْهُرٍ «فَأَمَرَهَا رَسُولُ اللهِ ﷺ أَنْ تَتَزَوَّجَ» فَقَالَ أَبُو هُرَيْرَةَ وَأَنَا أَشْهَدُ عَلَى ذَلِكَ