From Sahih Bukhari (Hadith 2998):
Narrated Ibn' `Umar:from the Prophet (ﷺ) the following Hadith (No. 242). Narrated Ibn `Umar: The Prophet (ﷺ) said, "If the people knew what I know about traveling alone, then nobody would travel alone at night
Reference: Bukhari 2998