The Messenger of Allah ﷺ said, "If any of you knew what there is in being alone, no one would travel by night by himself."
حدثنا أبو بكر بن أبي شيبة حدثنا وكيع عن عاصم بن محمد عن أبيه
قال رسول الله ﷺ لو يعلم أحدكم ما في الوحدة ما سار أحد بليل وحده
Bukhari narrated it in the Book of Jihad and Expeditions, chapter on traveling alone, no. 2998, through the hadith of Asim.