It is narrated from Sayyida Aisha (may Allah be pleased with her) that the Noble Prophet (peace and blessings be upon him and his family) said: The pen has been lifted from three persons: from the one who is sleeping until he wakes up, from the child until he reaches puberty, and from the insane person until he regains sanity.
Hadith Referenceالفتح الربانی / كتاب الصلاة / 1096