It was narrated from 'Ali bin Abu Talib that:the Messenger of Allah (ﷺ) said: "The Pen is lifted from the minor, the insane person and the sleeper
Hadith No. 2042
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Sahih
Zubair Ali Zai:
Daif