حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، قَالَ: ثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، عَنْ حَمَّادِ بْنِ سَلَمَةَ، عَنْ حَمَّادٍ، عَنْ إِبْرَاهِيمَ، عَنِ الْأَسْوَدِ، عَنْ عَائِشَةَ، رَضِيَ اللَّهُ عَنْهَا، عَنِ النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ: " رُفِعَ الْقَلَمُ عَنْ ثَلَاثَةٍ: عَنِ النَّائِمِ حَتَّى يَسْتَيْقِظَ وَعَنِ الصَّبِيِّ حَتَّى يَكْبُرَ وَعَنِ الْمَجْنُونِ حَتَّى يَعْقِلَ أَوْ يُفِيقَ " حَدَّثَنَا مُحَمَّدُ عَنَ عَفَّانَ بِهَذَا وَقَالَ: حَتَّى يَحْتَلِمَ.
Sayyidah Aisha (may Allah be pleased with her) narrates that the Noble Prophet (peace and blessings be upon him) said: Three people are exempt from accountability: the sleeping person, until he wakes up; the child, until he reaches maturity; and the insane person, until he becomes sane or regains consciousness. This narration has also been reported by Muhammad from Affan, in which the words are «حتي يحتلم».