Al-Adab Al-Mufrad, Book 7, Hadith 140 (English)

Asma' bint 'Ubayd said, "I said to Ibn Sirin, 'I have an orphan in my care.' He said, 'Treat him as you would treat your own child. Beat him as you would beat your own child.'"

حَدَّثَنَا مُوسَى، قَالَ‏:‏ حَدَّثَنَا سَلاَّمُ بْنُ أَبِي مُطِيعٍ، عَنْ أَسْمَاءَ بْنِ عُبَيْدٍ قَالَ‏:‏ قُلْتُ لِابْنِ سِيرِينَ‏:‏ عِنْدِي يَتِيمٌ، قَالَ‏:‏ اصْنَعْ بِهِ مَا تَصْنَعُ بِوَلَدِكَ، اضْرِبْهُ مَا تَضْرِبُ وَلَدَكَ‏.‏

sunnah.com