It is narrated from Sayyidah Aishah (may Allah be pleased with her) that he (peace and blessings be upon him) said: "The pen is lifted from three: from the child until he reaches puberty, from the insane until he recovers, and from the sleeper until he wakes up."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الإقرار / 11453