Abu Dawud Book 33, Hadith Number 4389.
Chapter : Not known.
Narated By Ali ibn AbuTalib : The Prophet (PBUH) 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.