Abdullah bin Masud reported,

The Prophet ﷺ said, "There is no staying up at night except for one who is praying or one who is travelling."

Azami 14730

Sahih

عن عبد الله بن مسعود قال

قال النبي ﷺ: لا سمر إلا لمصل أو مسافر.

الأعظمي 14730صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of night and day
Section
Permissibility of staying up late for the one praying, the traveler, and likewise one who has a need
Numbering
Jami al-Kamil 14730 (2nd edition)
Azami 14730