[Machine] A man came to the Prophet ﷺ and said, "O Messenger of Allah, what do you think of a man who sees his wife with another man and he kills him, and then you also kill him? How would you deal with him?" So Allah, the Most High, revealed what is mentioned in the Quran about those who curse each other. Then the Messenger of Allah ﷺ said to him, "The matter concerning you and your wife has been settled." He said, "But we cursed each other and I was a witness before the Messenger of Allah ﷺ ." The man said, "O Messenger of Allah, if I had restrained myself from killing him, I would have lied about her, so I divorced her." Then she became pregnant and he denied the pregnancy. Her son was summoned to her, and then the ruling regarding inheritance was applied, that he would inherit from her and she would inherit from him as Allah had prescribed for her.
أَنَّ رَجُلًا أَتَى النَّبِيَّ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ أَرَأَيْتَ رَجُلًا رَأَى مَعَ امْرَأَتِهِ رَجُلًا يَقْتُلُهُ فَتَقْتُلُونَهُ أَمْ كَيْفَ يَفْعَلُ بِهِ؟ فَأَنْزَلَ اللَّهُ جَلَّ وَعَلَا مَا ذِكْرُ فِي الْقُرْآنِ مِنَ الْمُتَلَاعِنِينَ فَقَالَ لَهُ رَسُولُ اللَّهِ ﷺ «قَدْ قُضِيَ فِيكَ وَفِي امْرَأَتِكَ» قَالَ فَتَلَاعَنَا وَأَنَا شَاهِدٌ عِنْدَ رَسُولِ اللَّهِ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ إِنْ أَمْسِكُهَا فَقَدْ كَذَبْتُ عَلَيْهَا فَفَارَقَهَا فَكَانَتْ سُنَّةٌ بَعْدُ أَنْ يُفَرَّقَ بَيْنَ الْمُتَلَاعِنِينَ فَكَانَتْ حَامِلًا فَأَنْكَرَ حَمْلَهَا وَكَانَ ابْنُهَا يُدْعَى إِلَيْهَا ثُمَّ جَرَتِ السُّنَّةُ فِي الْمِيرَاثِ أَنْ يَرِثَهَا وَتَرِثُ مِنْهُ مَا فَرَضَ اللَّهُ لَهَا