Language:
كتاب الطلاق
68  
Divorce
(39)
Chapter: "For those who are pregnant, their 'Idda is until they laydown their burdens."
(39)
بَابُ: {وَأُولاَتُ الأَحْمَالِ أَجَلُهُنَّ أَنْ يَضَعْنَ حَمْلَهُنَّ}
Sahih al-Bukhari 5319

Narrated `Abdullah bin `Abdullah:

that his father had written to Ibn Al-Arqam a letter asking him to ask Subai'a Al-Aslamiya how the Prophet had given her the verdict. She said, "The Prophet, gave me his verdict that after I gave birth, I could marry."

حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، عَنِ اللَّيْثِ، عَنْ يَزِيدَ، أَنَّ ابْنَ شِهَابٍ، كَتَبَ إِلَيْهِ أَنَّ عُبَيْدَ اللَّهِ بْنَ عَبْدِ اللَّهِ، أَخْبَرَهُ عَنْ أَبِيهِ، أَنَّهُ كَتَبَ إِلَى ابْنِ الأَرْقَمِ أَنْ يَسْأَلَ، سُبَيْعَةَ الأَسْلَمِيَّةَ كَيْفَ أَفْتَاهَا النَّبِيُّ صلى الله عليه وسلم فَقَالَتْ أَفْتَانِي إِذَا وَضَعْتُ أَنْ أَنْكِحَ‏.‏
Reference : Sahih al-Bukhari 5319
In-book reference : Book 68, Hadith 68
USC-MSA web (English) reference : Vol. 7, Book 63, Hadith 240
  (deprecated numbering scheme)