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.
ibnmajah:2042Muḥammad b. Bashhār > Rawḥ b. ʿUbādah > Ibn Jurayj > al-Qāsim b. Yazīd > ʿAlī b. Abū Ṭālib

the Messenger of Allah ﷺ said: "The Pen is lifted from the minor, the insane person and the sleeper."  

ابن ماجة:٢٠٤٢حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ حَدَّثَنَا رَوْحُ بْنُ عُبَادَةَ حَدَّثَنَا ابْنُ جُرَيْجٍ أَنْبَأَنَا الْقَاسِمُ بْنُ يَزِيدَ عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ يُرْفَعُ الْقَلَمُ عَنِ الصَّغِيرِ وَعَنِ الْمَجْنُونِ وَعَنِ النَّائِمِ  


See similar narrations below:

Collected by Nasāʾī, Nasāʾī's Kubrá
nasai:3432Yaʿqūb b. Ibrāhīm > ʿAbd al-Raḥman b. Mahdī > Ḥammād b. Salamah > Ḥammād > Ibrāhīm > al-Aswad > ʿĀʾishah

"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 back to his senses or recovers."  

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

عَنِ النَّبِيِّ ﷺ قَالَ رُفِعَ الْقَلَمُ عَنْ ثَلاَثٍ عَنِ النَّائِمِ حَتَّى يَسْتَيْقِظَ وَعَنِ الصَّغِيرِ حَتَّى يَكْبُرَ وَعَنِ الْمَجْنُونِ حَتَّى يَعْقِلَ أَوْ يَفِيقَ  

nasai-kubra:5596Yaʿqūb b. Ibrāhīm al-Dawraqī > ʿAbd al-Raḥman b. Mahdī > Ḥammād b. Salamah > Ḥammād > Ibrāhīm > al-Aswad > ʿĀʾishah

"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 back to his senses or recovers." (Using translation from Nasāʾī 3432)  

الكبرى للنسائي:٥٥٩٦أَخْبَرَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ الدَّوْرَقِيُّ قَالَ حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ قَالَ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ حَمَّادٍ عَنْ إِبْرَاهِيمَ عَنِ الْأَسْوَدِ عَنْ عَائِشَةَ

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