Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "The pen has been lifted from three: from the child until he grows up, from the one who is asleep until he wakes up, and from the insane until he recovers."
Al-Bazzar recorded it. Its chain contains Abd al-Rahman bin Abdullah bin Umar bin Hafs, who is matruk (abandoned).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الحدود والديات / 10512