(Imām Bukhārī narrates): Abdullah narrated to us, he heard from Yazid, he said: Humaid informed us from Anas, may Allāh be pleased with him, he said that
one night the Messenger of Allāh ﷺ delayed the Isha prayer until midnight, then he came to us. So when he had led the prayer, he faced us and said: Indeed the people have prayed and gone to sleep, while you have remained in prayer as long as you kept waiting for the prayer.
حَدَّثَنَا عَبْدُ اللَّهِ، سَمِعَ يَزِيدَ، قَالَ أَخْبَرَنَا حُمَيْدٌ، عَنْ أَنَسٍ، قَالَ أَخَّرَ رَسُولُ اللَّهِ صلى الله عليه وسلم الصَّلاَةَ ذَاتَ لَيْلَةٍ إِلَى شَطْرِ اللَّيْلِ ثُمَّ خَرَجَ عَلَيْنَا، فَلَمَّا صَلَّى أَقْبَلَ عَلَيْنَا بِوَجْهِهِ فَقَالَ " إِنَّ النَّاسَ قَدْ صَلَّوْا وَرَقَدُوا، وَإِنَّكُمْ لَنْ تَزَالُوا فِي صَلاَةٍ مَا انْتَظَرْتُمُ الصَّلاَةَ ".
Reference: Sahih Al Bukhari 847