[Machine] A man married a woman, and when she became pregnant, he accused her of adultery. The matter was brought to the Prophet, who ordered that they be separated. He assigned her a dowry and flogged her one hundred times. This is a Mursal Hadith, and the evidence indicates that it is permissible for a Muslim adulterous woman to get married and that marriage is not annulled by adultery. God has only established the waiting period (iddah) in marriage. The Prophet also prohibited inheritance from non-Muslim rulers, and it is agreed upon by the scholars that a child born from an adulterous free woman is considered free. It is possible that this Hadith, if authentic, has been abrogated, and Allah knows best.
أَنَّ رَجُلًا تَزَوَّجَ امْرَأَةً فَلَمَّا أَصَابَهَا وَجَدَهَا حُبْلَى فَرُفِعَ ذَلِكَ إِلَى النَّبِيِّ ﷺ فَفَرَّقَ بَيْنَهُمَا وَجَعَلَ لَهَا الصَّدَاقَ وَجَلَدَهَا مِائَةً هَذَا حَدِيثٌ مُرْسَلٌ وَقَدْ مَضَتِ الدَّلَالَةُ عَلَى جَوَازِ نِكَاحِ الزَّانِيَةِ الْمُسْلِمَةِ وَأَنَّهُ لَا يُفْسَخُ بِالزِّنَا وَإِنَّمَا جَعَلَ اللهُ تَعَالَى الْعِدَّةَ فِي النِّكَاحِ وَجَعَلَ النَّبِيُّ ﷺ الِاسْتِبْرَاءَ مِنَ الْمِلْكِ وَأَجْمَعَ أَهْلُ الْعِلْمِ عَلَى أَنَّ وَلَدَ الزِّنَا مِنَ الْحُرَّةِ يَكُونُ حُرًّا فَيُشْبِهُ أَنْ يَكُونَ هَذَا الْحَدِيثُ إِنْ كَانَ صَحِيحًا مَنْسُوخًا وَاللهُ أَعْلَمُ