It is narrated from Sayyiduna Bilal (may Allah be pleased with him): "A man came into the presence of the Prophet (peace and blessings be upon him) and said: O Messenger of Allah! There is an orphan under my care; may I beat him (for discipline and correction)? He (peace and blessings be upon him) said: 'Yes, for the same things for which you beat your own child.'" This chain is da'if (weak) because Hajjaj bin Artat is weak.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الأدب وغيره / 5498