It is narrated from Sayyiduna Abu Jabirah al-Ansari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "A child is a master for seven years, a servant for seven years and a minister (adviser) for seven years. Then, if at the age of twenty-one you are pleased with his companionship and support (then well and good); otherwise strike him on his side (that is, discipline him), and you will have presented your excuse before Allah, the Mighty and Majestic."
Imam al-Tabarani (may Allah have mercy on him) said: "This hadith is not narrated from the Messenger of Allah (peace and blessings be upon him) except with this chain; Ali bin Harb is alone in narrating it."
Hadith Referenceالمعجم الأوسط / باب الميم / 6104
Hadith Gradingمحدثین:إسناده ضعيف جدًّا، فيه زيد بن جبيرة متروك
Hadith Takhrij«قال الهيثمي: وفيه زيد بن جبيرة بن محمود وهو متروك «مجمع الزوائد ومنبع الفوائد، ج 8، ص 159»»