The sunnah contains many examples of how Rasulullah (ﷺ) dealt with children.
Why is this important? Because he’s our uswah, our role-model, our example to follow. Many of his companions met him once or twice, saw him doing something once or twice, and as a result, would keep doing that thing until they died. Not because he told them to, but because they loved him, and sought to follow him as much as possible.
We should also try and follow him as much as we can.
On to the examples.
Anas ibn Malik’s Ten Years of Service
I served the Prophet for ten years, I lived with him for ten years and not once did he rebuke me. Not once did the word “uff” come from his mouth. He never said to me, “why did you do this?” or “why didn’t you do that?” : (Bukhari 5691,Muslim 2309)
Anas ibn Malik was a well known scholar among the sahaba. His mother gifted him to Rasulullah (ﷺ) while he was a young child, in order to give him the best possible upbringing and Islamic education.