Narrated 'Ali:That the Messenger of Allah (ﷺ) said: "The pen has been lifted from three; for the sleeping person until he awakens, for the boy until he becomes a young man and for the mentally insane until he regains sanity
Hadith No. 1423
Jami At Tirmidhi
Gradings:
Ahmad Muhammad Shakir:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Hasan