أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ أَنْبَأَنَا عَبْدُ الرَّزَّاقِ، قَالَ أَنْبَأَنَا ابْنُ جُرَيْجٍ، قَالَ أَخْبَرَنِي دَاوُدُ بْنُ أَبِي عَاصِمٍ، أَنَّ أَبَا سَلَمَةَ بْنَ عَبْدِ الرَّحْمَنِ، أَخْبَرَهُ قَالَ بَيْنَمَا أَنَا وَأَبُو هُرَيْرَةَ عِنْدَ ابْنِ عَبَّاسٍ إِذْ جَاءَتْهُ امْرَأَةٌ فَقَالَتْ تُوُفِّيَ عَنْهَا زَوْجُهَا وَهِي حَامِلٌ فَوَلَدَتْ لأَدْنَى مِنْ أَرْبَعَةِ أَشْهُرٍ مِنْ يَوْمِ مَاتَ ‏.‏ فَقَالَ ابْنُ عَبَّاسٍ آخِرُ الأَجَلَيْنِ ‏.‏ فَقَالَ أَبُو سَلَمَةَ أَخْبَرَنِي رَجُلٌ مِنْ أَصْحَابِ النَّبِيِّ صلى الله عليه وسلم أَنَّ سُبَيْعَةَ الأَسْلَمِيَّةَ جَاءَتْ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَتْ تُوُفِّيَ عَنْهَا زَوْجُهَا وَهِيَ حَامِلٌ فَوَلَدَتْ لأَدْنَى مِنْ أَرْبَعَةِ أَشْهُرٍ فَأَمَرَهَا رَسُولُ اللَّهِ صلى الله عليه وسلم أَنْ تَتَزَوَّجَ ‏.‏ قَالَ أَبُو هُرَيْرَةَ وَأَنَا أَشْهَدُ عَلَى ذَلِكَ ‏.‏

Abu Salamah bin 'Abdur-Rahman said: "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.'" Translation Not Available

Book Ref: Sunan An Nisai Book 27 Hadith 3517
Web Ref:  Sunan An Nisai Vol 4 Book 27 Hadith 3547