Sahih al-Bukhari 4909
Narrated Abu Salama:
A man came to Ibn `Abbas while Abu Huraira was sitting with him and said, "Give me your verdict 
regarding a lady who delivered a baby forty days after the death of her husband." Ibn `Abbas said, 
"This indicates the end of one of the two prescribed periods." I said "For those who are pregnant, their 
prescribed period is until they deliver their burdens." Abu Huraira said, I agree with my cousin (Abu 
Salama)." Then Ibn `Abbas sent his slave, Kuraib to Um Salama to ask her (regarding this matter). 
She replied. "The husband of Subai'a al Aslamiya was killed while she was pregnant, and she 
delivered a baby forty days after his death. Then her hand was asked in marriage and Allah's Messenger (ﷺ) 
married her (to somebody). Abu As-Sanabil was one of those who asked for her hand in marriage".
حَدَّثَنَا سَعْدُ بْنُ حَفْصٍ، حَدَّثَنَا شَيْبَانُ، عَنْ يَحْيَى، قَالَ أَخْبَرَنِي أَبُو سَلَمَةَ، قَالَ جَاءَ رَجُلٌ إِلَى ابْنِ عَبَّاسٍ وَأَبُو هُرَيْرَةَ جَالِسٌ عِنْدَهُ فَقَالَ أَفْتِنِي فِي امْرَأَةٍ وَلَدَتْ بَعْدَ زَوْجِهَا بِأَرْبَعِينَ لَيْلَةً‏.‏ فَقَالَ ابْنُ عَبَّاسٍ آخِرُ الأَجَلَيْنِ‏.‏ قُلْتُ أَنَا ‏{‏وَأُولاَتُ الأَحْمَالِ أَجَلُهُنَّ أَنْ يَضَعْنَ حَمْلَهُنَّ‏}‏ قَالَ أَبُو هُرَيْرَةَ أَنَا مَعَ ابْنِ أَخِي ـ يَعْنِي أَبَا سَلَمَةَ ـ فَأَرْسَلَ ابْنُ عَبَّاسٍ غُلاَمَهُ كُرَيْبًا إِلَى أُمِّ سَلَمَةَ يَسْأَلُهَا فَقَالَتْ قُتِلَ زَوْجُ سُبَيْعَةَ الأَسْلَمِيَّةِ وَهْىَ حُبْلَى، فَوَضَعَتْ بَعْدَ مَوْتِهِ بِأَرْبَعِينَ لَيْلَةً فَخُطِبَتْ فَأَنْكَحَهَا رَسُولُ اللَّهِ صلى الله عليه وسلم وَكَانَ أَبُو السَّنَابِلِ فِيمَنْ خَطَبَهَا‏.‏