Muwatta Malik, Book 36, Hadith 21 (USC-MSA)

Malik related to me from Yazid ibn Abdullah ibn al-Hadi from Muhammad ibn Ibrahim ibn al-Harith at-Taymi from Sulayman ibn Yasar from Abdullah ibn Abi Umayya that a woman's husband died, and she did the idda of four months and ten days. Then she married when she was free to marry. She stayed with her husband for four and a half months, then gave birth to a fully developed child. Her husband went to Umar ibn al-Khattab and mentioned that to him, so Umar called some of the old women of the Jahiliyya and asked them about that. One of the women said, "I will tell you what happened with this woman. When her husband died, she was pregnant by him, but then the blood flowed from her because of his death and the child became dry in her womb. When her new husband had intercourse with her and the water reached the child, the child moved in the womb and grew." Umar ibn al-Khattab believed her and separated them (until she had completed her idda). Umar said, "Only good has reached me about you two," and he connected the child to the first husband.

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

sunnah.com

also referenced under: Book 36, Hadith 1425 (In-Book)