Narrated Ali ibn Abu Talib: The Prophet صلی اللہ علیہ وسلم 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. Abu Dawud said: Ibn Juraij has transmitted it from Al-Qasim bin Yazid on the authority of Ali from the Prophet صلی اللہ علیہ وسلم. This version adds: and an old man who is feeble-minded.