Musnad Ahmad 1328
It was narrated that a woman who had committed zina was brought to `Umar bin al-Khattab (رضي الله عنه), and he ordered that she be stoned. They took her to stone her, and were met by ‘Ali (رضي الله عنه) who said:
What is this? They said: She committed zina, and `Umar ordered that she be stoned, ‘Ali took her from them and sent them back. They went back to `Umar (رضي الله عنه) who said: Why have you come back? They said: `Ali (رضي الله عنه) sent us back. He said: `Ali has only done this because of something he knows. So he sent for `Ali who was somewhat angry. He said: Why did you send these people back? He said: Didn`t you hear the Messenger of Allah (ﷺ) say: “The Pen has been lifted from three: from the sleeper until he wakes up, from the minor until he grows up and from the insane until he comes to his senses.” ‘Umar said: Yes I did. `Ali (رضي الله عنه) said:This is the insane woman of the tribe of Banu so and so, Perhaps he came to her when she was in that state. ʻUmar (رضي الله عنه) said: I do not know. He [‘Ali] said: And I do not know. And he did not stone her.
حَدَّثَنَا عَفَّانُ، حَدَّثَنَا حَمَّادٌ، عَنْ عَطَاءِ بْنِ السَّائِبِ، عَنْ أَبِي ظَبْيَانَ الْجَنْبِيِّ، أَنَّ عُمَرَ بْنَ الْخَطَّابِ، رَضِيَ اللَّهُ عَنْهُ أُتِيَ بِامْرَأَةٍ قَدْ زَنَتْ فَأَمَرَ بِرَجْمِهَا فَذَهَبُوا بِهَا لِيَرْجُمُوهَا فَلَقِيَهُمْ عَلِيٌّ رَضِيَ اللَّهُ عَنْهُ فَقَالَ مَا هَذِهِ قَالُوا زَنَتْ فَأَمَرَ عُمَرُ بِرَجْمِهَا فَانْتَزَعَهَا عَلِيٌّ مِنْ أَيْدِيهِمْ وَرَدَّهُمْ فَرَجَعُوا إِلَى عُمَرَ رَضِيَ اللَّهُ عَنْهُ فَقَالَ مَا رَدَّكُمْ قَالُوا رَدَّنَا عَلِيٌّ رَضِيَ اللَّهُ عَنْهُ قَالَ مَا فَعَلَ هَذَا عَلِيٌّ إِلَّا لِشَيْءٍ قَدْ عَلِمَهُ فَأَرْسَلَ إِلَى عَلِيٍّ فَجَاءَ وَهُوَ شِبْهُ الْمُغْضَبِ فَقَالَ مَا لَكَ رَدَدْتَ هَؤُلَاءِ قَالَ أَمَا سَمِعْتَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ رُفِعَ الْقَلَمُ عَنْ ثَلَاثَةٍ عَنْ النَّائِمِ حَتَّى يَسْتَيْقِظَ وَعَنْ الصَّغِيرِ حَتَّى يَكْبَرَ وَعَنْ الْمُبْتَلَى حَتَّى يَعْقِلَ قَالَ بَلَى قَالَ عَلِيٌّ رَضِيَ اللَّهُ عَنْهُ فَإِنَّ هَذِهِ مُبْتَلَاةُ بَنِي فُلَانٍ فَلَعَلَّهُ أَتَاهَا وَهُوَ بِهَا فَقَالَ عُمَرُ لَا أَدْرِي قَالَ وَأَنَا لَا أَدْرِي فَلَمْ يَرْجُمْهَا‏.‏