Sunan an-Nasa'i, Hadith 871

Abu Bakrah narrated that he entered the Masjid when the when the Prophet was bowing, so he bowed outside the row. The Prophet said: "May Allah increase you in keenness, but do not do this again."

أَخْبَرَنَا حُمَيْدُ بْنُ مَسْعَدَةَ، عَنْ يَزِيدَ بْنِ زُرَيْعٍ، قَالَ حَدَّثَنَا سَعِيدٌ، عَنْ زِيَادٍ الأَعْلَمِ، قَالَ حَدَّثَنَا الْحَسَنُ، أَنَّ أَبَا بَكْرَةَ، حَدَّثَهُ أَنَّهُ، دَخَلَ الْمَسْجِدَ وَالنَّبِيُّ صلى الله عليه وسلم رَاكِعٌ فَرَكَعَ دُونَ الصَّفِّ فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ زَادَكَ اللَّهُ حِرْصًا وَلاَ تَعُدْ ‏" ‏ ‏.‏

sunnah.com