It was narrated from al-Hasan al-Basri, from `Ali (رضي الله عنه) that The Prophet (ﷺ) said:
`The Pen has been lifted from three; from the sleeper until he wakes up, from the crazy - or insane- one until he comes back to his senses, and from the minor until he grows up.”