Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:17213Abū al-Ḥasan ʿAlī b. Muḥammad al-Muqriʾ > al-Ḥasan b. Muḥammad b. Isḥāq > Yūsuf b. Yaʿqūb > Abū al-Rabīʿ > Hushaym > Yūnus > al-Ḥasan > ʿAlī

[Machine] I heard the Prophet ﷺ say, "The pen has been lifted from three: from the child until he reaches puberty, from the sleeper until he wakes up, and from the insane until he regains sanity." He (the narrator) said: And Abu al-Rabi' narrated to us, Hushaym informed us, Khalid al-Hadda narrated from Abu al-Dhuhah from Ali (may Allah be pleased with him), with the same narration.  

البيهقي:١٧٢١٣أَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدٍ الْمُقْرِئُ أنبأ الْحَسَنُ بْنُ مُحَمَّدِ بْنِ إِسْحَاقَ ثنا يُوسُفُ بْنُ يَعْقُوبَ ثنا أَبُو الرَّبِيعِ ثنا هُشَيْمٌ ثنا يُونُسُ عَنِ الْحَسَنِ عَنْ عَلِيٍّ ؓ قَالَ

سَمِعْتُ النَّبِيَّ ﷺ يَقُولُ رُفِعَ الْقَلَمُ عَنْ ثَلَاثَةٍ عَنِ الصَّبِيِّ حَتَّى يَعْقِلَ وَعَنِ النَّائِمِ حَتَّى يَسْتَيْقِظَ وَعَنِ الْمَجْنُونِ حَتَّى يُكْشَفَ عَنْهُ 17214 قَالَ وَحَدَّثَنَا أَبُو الرَّبِيعِ ثنا هُشَيْمٌ أنبأ خَالِدٌ الْحَذَّاءُ عَنْ أَبِي الضُّحَى عَنْ عَلِيٍّ ؓ بِمِثْلِ ذَلِكَ  


See similar narrations below:

Collected by Nasāʾī's Kubrá
nasai-kubra:7303Aḥmad b. ʿAmr b. al-Sarḥ Fī Ḥadīthih > Ibn Wahb > Jarīr b. Ḥāzim > Sulaymān b. Mihrān > Abū Ẓabyān > ʿAbdullāh b. ʿAbbās > Mur > ʿAlī b. Abū Ṭālib Bimajnūnah Banī Fulān Zanat Faʾamar ʿUmar b. al-Khaṭṭāb Birajmihā Faraddahā ʿAlī b. Abū Ṭālib > Liʿumar Yā Amīr al-Muʾminīn Amart Birajm Hadhih > Naʿam > Wamā Tadhkur

Ibn Abbas said: A lunatic woman passed by Ali ibn AbuTalib. He then mentioned the rest of the tradition to the same effect as Uthman mentioned. This version has: Do you not remember that the Messenger of Allah ﷺ has said: There are three whose actions are not recorded: a lunatic whose mind is deranged till he is restored to consciousness, a sleeper till he awakes, and a boy till he reaches puberty? (Using translation from Abū Dāʾūd 4401)  

الكبرى للنسائي:٧٣٠٣أَخْبَرَنَا أَحْمَدُ بْنُ عَمْرِو بْنِ السَّرْحِ فِي حَدِيثِهِ عَنِ ابْنِ وَهْبٍ قَالَ أَخْبَرَنِي جَرِيرُ بْنُ حَازِمٍ عَنْ سُلَيْمَانَ بْنِ مِهْرَانَ عَنْ أَبِي ظَبْيَانَ عَنْ عَبْدِ اللهِ بْنِ عَبَّاسٍ قَالَ مُرَّ عَلَى عَلِيِّ بْنِ أَبِي طَالِبٍ بِمَجْنُونَةِ بَنِي فُلَانٍ زَنَتْ فَأَمَرَ عُمَرُ بْنُ الْخَطَّابِ بِرَجْمِهَا فَرَدَّهَا عَلِيُّ بْنُ أَبِي طَالِبٍ وَقَالَ لِعُمَرَ يَا أَمِيرَ الْمُؤْمِنِينَ أَمَرْتَ بِرَجْمِ هَذِهِ؟ قَالَ نَعَمْ قَالَ وَمَا تَذْكُرُ

أَنَّ رَسُولَ اللهِ قَالَ «رُفِعَ الْقَلَمُ عَنْ ثَلَاثَةٍ عَنِ الْمَجْنُونِ الْمَغْلُوبِ عَلَى عَقْلِهِ وَعَنِ النَّائِمِ حَتَّى يَسْتَيْقِظَ وَعَنِ الصَّبِيِّ حَتَّى يَحْتَلِمَ» قَالَ صَدَقْتَ قَالَ فَخَلَّى عَنْهَا