Anas bin Malik reported,

We waited for the Prophet ﷺ one night until about halfway through the night had passed, then he came and led us in prayer. Afterwards, he addressed us and said, "The people have prayed and gone to sleep, but you have remained in prayer as long as you were waiting for the prayer."

Azami 1846

Sahih

عن أنس قال

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

الأعظمي 1846صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Prayer times
Section
Permissibility of staying up to discuss fiqh and good matters after Isha
Numbering
Jami al-Kamil 1846 (2nd edition)
Azami 1846