Sunan Ibn Majah, Volume 3, Book 10, Hadith 2041 (DarusSalam) ⓘ
It was narrated from Aishah that: the Messenger of Allah said. "The Pen has been lifted from three : from the sleeping person until he awakens, from the minor until he grows up, and from the insane person until he comes to his senses."In his narration, (one of the narrators Abu Bakr (Ibn Abu Shaibah) said: "And from the afflicted person, unit he recovers" (1)
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، ح وَحَدَّثَنَا مُحَمَّدُ بْنُ خَالِدِ بْنِ خِدَاشٍ، وَمُحَمَّدُ بْنُ يَحْيَى، قَالاَ حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ حَمَّادٍ، عَنْ إِبْرَاهِيمَ، عَنِ الأَسْوَدِ، عَنْ عَائِشَةَ، . أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ " رُفِعَ الْقَلَمُ عَنْ ثَلاَثَةٍ عَنِ النَّائِمِ حَتَّى يَسْتَيْقِظَ وَعَنِ الصَّغِيرِ حَتَّى يَكْبَرَ وَعَنِ الْمَجْنُونِ حَتَّى يَعْقِلَ أَوْ يُفِيقَ " . قَالَ أَبُو بَكْرٍ فِي حَدِيثِهِ " وَعَنِ الْمُبْتَلَى حَتَّى يَبْرَأَ " .
also referenced under: Hadith 2041 (Reference) & Book 10, Hadith 2119 (In-Book)