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."
English reference: Vol. 3, Book 10, Hadith 2042
Arabic reference: Book 10, Hadith 2120
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.