Mishkat al-Masabih
Mishkat al-Masabih 3287, 3288
Arabic hadith text
وَعَنْ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " رُفِعَ الْقَلَمُ عَنْ ثَلَاثَةٍ: عَنِ النَّائِمِ حَتَّى يَسْتَيْقِظَ وَعَنِ الصَّبِيِّ حَتَّى يَبْلُغَ وَعَنِ الْمَعْتُوهِ حَتَّى يعقل ". رَوَاهُ التِّرْمِذِيّ وَأَبُو دَاوُد وَرَوَاهُ الدَّارِمِيُّ عَنْ عَائِشَةَ وَابْنُ مَاجَهْ عَنْهُمَا
Translation
Ali (may Allah be pleased with him) reported that the Messenger of Allah (peace and blessings be upon him) said: ‘The pen is lifted from three: the sleeper until he awakens, the child until he reaches maturity, and the imbecile until he regains reason.’ Al-Tirmidhi and Abu Dawud transmitted it. Al-Darimi transmitted it from A'ishah, and Ibn Majah from both of them.