Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:15148Abū Zakariyyā b. Abū Isḥāq al-Muzakkī > Abū al-Ḥasan Aḥmad b. Muḥammad b. ʿAbdūs > ʿUthmān b. Saʿīd > ʿAbdullāh b. Ṣāliḥ > Muʿāwiyah b. Ṣāliḥ > ʿAlī b. Abū Ṭalḥah

[Machine] In His saying (and their husbands have the better right to take them back in that period, if they wish for reconciliation) [Al-Baqarah 2:228], it is said that when a man divorces a pregnant woman once or twice, he has the better right to take her back as long as she has not given birth, and it is not permissible for her to conceal her pregnancy. And this is His saying (nor is it lawful for them to conceal what Allah has created in their wombs) [Al-Baqarah 2: 228].  

البيهقي:١٥١٤٨وَأَخْبَرَنَا أَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ الْمُزَكِّي أنا أَبُو الْحَسَنِ أَحْمَدُ بْنُ مُحَمَّدِ بْنِ عَبْدُوسٍ نا عُثْمَانُ بْنُ سَعِيدٍ نا عَبْدُ اللهِ بْنُ صَالِحٍ عَنْ مُعَاوِيَةَ بْنِ صَالِحٍ عَنْ عَلِيِّ بْنِ أَبِي طَلْحَةَ عَنِ ابْنِ عَبَّاسٍ

فِي قَوْلِهِ {وَبُعُولَتُهُنَّ أَحَقُّ بِرَدِّهِنَّ فِي ذَلِكَ إِنْ أَرَادُوا إِصْلَاحًا} [البقرة 228] قَالَ يَقُولُ إِذَا طَلَّقَ الرَّجُلُ الْمَرْأَةَ تَطْلِيقَةً أَوِ اثْنَتَيْنِ وَهِيَ حَامِلٌ فَهُوَ أَحَقُّ بِرَجْعَتِهَا مَا لَمْ تَضَعْ وَلَا يَحِلُّ لَهَا أَنْ تَكْتُمَ حَمْلَهَا وَهُوَ قَوْلُهُ {وَلَا يَحِلُّ لَهُنَّ أَنْ يَكْتُمْنَ مَا خَلَقَ اللهُ فِي أَرْحَامِهِنَّ} [البقرة 228]