Sunan Abu Dawud #4400
Prescribed Punishments (Kitab Al-Hudud) 40:50
A similar tradition has also been transmitted by al-A’mash through a different chain of narrators. He also said :
“... . Till he reaches puberty , and a lunatic till he is restored to consciousness.” ‘Umar then began to utter: Allah is most great.