By In-House Scholar
Hadith from The Prophet (pbuh)- Nahjul Fasaha :
لعن اللَّه ثلاثة آكل زاده وحده، و راكب الفلاة وحده، و النّائم في بيت وحده - نهج الفصاحه
God removes his mercy from three types of people:
Who eats his meal on his own.
Who travels alone/ on his own.
Who sleeps alone in their houses.
*********************************************************
The meaning of this hadith is apparent from the first part of it,
As it is pointing out to the " Personality " of such people,
who discriminate themselves, and refrain from socializing
and befriending/familiarizing themselves with others.
This hadith has explained these kind of people in three parts:
Those who do not share their meals with others.
Those who do not get along and accompany others when traveling.
Those who have an independent house, but do not interact with others,
meaning nobody stays or sleeps in their house.
Obviously other matters does not concern this hadith,
and it does not mean,
that you can never be alone,
or travel alone,
or sleep alone in a place.