Abdullah bin Umar reported,

The Prophet ﷺ forbade solitude, that a man should spend the night alone or travel alone.

Azami 14780

Sahih

عن ابن عمر

أن النبي ﷺ نهى عن الوحدة: أن يبيت الرجل وحده، أو يسافر وحده.

الأعظمي 14780صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of the road, walking, and travel
Section
Dislike of traveling alone
Numbering
Jami al-Kamil 14780 (2nd edition)
Azami 14780