The Prophet ﷺ said, "There is no staying up at night except for one who is praying or one who is travelling."
قال النبي ﷺ: لا سمر إلا لمصل أو مسافر.
No references are available.
Tabarani narrated it in Al-Kabir (10/268) from Muhammad bin Abdullah Hadrami, who said, Ibrahim bin Yusuf Sayrafi told us, who said, Sufyan told us, from Mansur, from Habib bin Abu Thabit, from Ziyad bin Hudayr, from Abdullah, who said, and then he mentioned it. Its isnad is sahih.Ahmad (2603) and others also narrated it through another route, but it contains an unnamed man.