Prescribed Punishments (Kitab Al-Hudud)

Dawud :: Book 38 : Hadith 4389

Narrated Ali ibn AbuTalib:

The Prophet (peace_be_upon_him) said: There are three (persons) whose actions are not recorded: a sleeper till he awakes, a boy till he reaches puberty, and a lunatic till he comes to reason.