Ali reported God’s Messenger as saying, “There are three whose actions are not recorded:a sleeper till he awakes, a boy till he reaches puberty, and an idiot till he is restored to reason.” Tirmidhi and Abu Dawud transmitted it.
Hadith Referenceمشكوة المصابيح / كتاب النكاح / 3287
Hadith Gradingالألبانی:صَحِيح | زبیر علی زئی:حسن
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «حسن، رواه الترمذي (1423 وقال: حسن غريب) و أبو داود (4403)»