It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "The pen has been lifted from three (kinds of people): from the sleeper until he wakes up, from the insane (one whose mind is disturbed) until he recovers, and from the child until he attains understanding or reaches puberty."
Imam al-Tabarani (may Allah have mercy on him) said: "This hadith is narrated from Ibn Abbas (may Allah be pleased with them both) only through this chain, and no one narrated it except Abu al-Jamahir."
Hadith Referenceالمعجم الأوسط / باب الحاء / 3403
Hadith Takhrij«أخرجه الطبراني فى «الكبير» برقم: 11141»