Hadithcore
Riyad as-Salihin, 965

Abu Tha'labah Al-Khushani (May Allah be pleased with him) reported:

Whenever the people encamped during the journey, they would disperse in the mountain passes and valleys. (When) the Messenger of Allah (ﷺ) noticed this he said, "Your act of scattering in the mountain passes and valleys is from Satan." Afterwards the Companions kept close together whenever they encamped. <b>[Abu Dawud]</b>.

وعن أبي ثعلبة الخشني، رضي الله عنه، قال‏:‏ كان الناس إذا نزلوا منزلاً تفرقوا في الشعاب والأودية‏.‏ فقال رسول الله، صلى الله عليه وسلم ‏:‏ ‏

‏إن تفرقكم في هذه الشعاب والأودية إنما ذلكم من الشيطان‏!‏‏

‏ فلم ينزلوا بعد ذلك منزلا إلا انضم بعضهم إلي بعض‏.‏ ‏(‏‏(‏رواه أبو داود بإسناد حسن‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 7, Hadith 10
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) Physical dispersal is the work of Satan, and coming together to do something good is dear and pleasing to Allah Almighty.<br> 2) When people physically scatter, this causes disharmony between their hearts and loss of love and cordiality amongst them. This indicates the correlation between outward and inward aspects in people’s relationships.<br> 3) It shows the merit of the Companions (may Allah be pleased with them) in their hastening to obey the Prophet’s command and follow his example. Where are those who do this nowadays?