[Machine] And he said to Umar, "O Commander of the believers, did you order the stoning of this person?" Umar replied, "Yes." He said, "Don't you remember that the Messenger of Allah ﷺ said, 'The pen has been lifted from three: the insane person until he comes to his senses, the sleeper until he wakes up, and the child until he reaches puberty.'" Umar said, "You are correct," and he decided not to carry out the punishment. Abu Abdullah said, "Regarding stoning the insane man or woman, there is a difference of opinion among the scholars that I am not knowledgeable about."
وَقَالَ لِعُمَرَ يَا أَمِيرَ الْمُؤْمِنِينَ أَمَرْتَ بِرَجْمِ هَذِهِ؟ قَالَ نَعَمْ قَالَ أَمَا تَذْكُرُ أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ رُفِعَ الْقَلَمُ عَنْ ثَلَاثٍ عَنِ الْمَجْنُونِ الْمَغْلُوبِ عَلَى عَقْلِهِ وَعَنِ النَّائِمِ حَتَّى يَسْتَيْقِظَ وَعَنِ الصَّبِيِّ حَتَّى يَحْتَلِمَ قَالَ صَدَقْتَ فَخَلَّى عَنْهَا قَالَ أَبُو عَبْدِ اللَّهِ «بِالْحَجْرِ عَلَى الْمَجْنُونِ وَالْمَجْنُونَةِ مِمَّا لَا أَعْلَمُ فِيهِ خِلَافًا بَيْنَ الْعُلَمَاءِ»