Abdullah bin Abbas reported,

He passed by Ali bin Abu Talib رضي الله عنه, with the meaning of Uthman's report.Ali said, "Do you not remember that the Messenger of Allah ﷺ said, 'The pen has been lifted from three: from the insane person who has lost his reason until he recovers, from the sleeping person until he awakens, and from the child until he reaches puberty'?"He said, "You have spoken the truth."So he released her.

Abu Dawud 4401

Daif

حدثنا ابن السرح أخبرنا ابن وهب أخبرني جرير بن حازم عن سليمان بن مهران عن أبي ظبيان

عن ابن عباس قال

مر على علي بن أبي طالب رضي الله عنه بمعنى عثمان قال أو ما تذكر أن رسول الله ﷺ قال رفع القلم عن ثلاثة عن المجنون المغلوب على عقله حتى يفيق وعن النائم حتى يستيقظ وعن الصبي حتى يحتلم قال صدقت قال فخلى عنها

أبو داود 4401ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Legal punishments
Chapter
Insane person who steals or commits a crime deserving a hadd punishment
Numbering
Darussalam 4401
Abu Dawud 4401