In the Hadith of Abu Bakrah (ra) in the Sahih of Imam Bukhari:
أنه انتهى إلى النبي صلى الله عليه وسلم وهو راكع فركع قبل أن يصل إلى الصف فذكر ذلك للنبي صلى الله عليه وسلم فقال زادك الله حرصا ولا تعد.
Abu Bakrah was so eager to join the congregational Salaah that he started and then performed rukooh before actually being in any of the sufoof. Then he, while in the bowing (rukoo) position, walked to join the sufoof, which is the incorrect manner of joining the congregation as a latecomer. The Prophet (saw) recognised his eagerness so he (saw) praised Abu Bakrah for it by making du’a for him. However, the Prophet (saw) pointed out to him that this was the incorrect manner to express his eagerness.
Imam Muslim narrates that Muawiyah b. Hakam Radi Allah anh said:
ما رأيت معلمًا قبله ولا بعده أحسن تعليماً منه.
صلوات ربي وسلامه عليه.
Look at the gentleness of the Prophet (saw). This is with the Salaah and it’s a big mistake. Yet, he (saw) didn’t shout or rebuke him, as we do with our students and young ones.
This doesn’t mean that we don’t rebuke, rather we look at each person’s situation and, where possible, we are gentle.