Qurra bin Khalid reported,

We waited for Hasan, but he was late in coming to us until it was nearly time for him to rise. When he came, he said, "These neighbors of ours invited us." Then he said, Anas bin Malik said, "One night we waited for the Prophet ﷺ until half the night had nearly passed before he came. He led us in prayer, then addressed us and said, 'The people have prayed and gone to sleep, but you have remained in prayer as long as you waited for the prayer.'"Hasan said, "And people remain in goodness as long as they wait for goodness."Qurra said, "This is from the hadith of Anas from the Prophet ﷺ."

Bukhari 600

Sahih

حدثنا عبد الله بن الصباح قال حدثنا أبو علي الحنفي حدثنا

قرة بن خالد قال

انتظرنا الحسن وراث علينا حتى قربنا من وقت قيامه فجاء فقال دعانا جيراننا هؤلاء ثم قال قال أنس بن مالك انتظرنا النبي ﷺ ذات ليلة حتى كان شطر الليل يبلغه فجاء فصلى لنا ثم خطبنا فقال ألا إن الناس قد صلوا ثم رقدوا وإنكم لم تزالوا في صلاة ما انتظرتم الصلاة قال الحسن وإن القوم لا يزالون بخير ما انتظروا الخير قال قرة هو من حديث أنس عن النبي ﷺ

البخاري 600صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer times
Chapter
Staying up for discourse on fiqh and good matters after Isha
Numbering
Darussalam 600
Bukhari 600