(2) بَابُ قَوْلِ اللَّهِ تَعَالَى: {يَا أَيُّهَا الَّذِينَ آمَنُوا لاَ تَدْخُلُوا بُيُوتًا غَيْرَ بُيُوتِكُمْ حَتَّى تَسْتَأْنِسُوا وَتُسَلِّمُوا عَلَى أَهْلِهَا ذَلِكُمْ خَيْرٌ لَكُمْ لَعَلَّكُمْ تَذَّكَّرُونَ فَإِنْ لَمْ تَجِدُوا فِيهَا أَحَدًا فَلاَ تَدْخُلُوهَا حَتَّى يُؤْذَنَ لَكُمْ وَإِنْ قِيلَ لَكُمُ ارْجِعُوا فَارْجِعُوا هُوَ أَزْكَى لَكُمْ وَاللَّهُ بِمَا تَعْمَلُونَ عَلِيمٌ لَيْسَ عَلَيْكُمْ جُنَاحٌ أَنْ تَدْخُلُوا بُيُوتًا غَيْرَ مَسْكُونَةٍ فِيهَا مَتَاعٌ لَكُمْ وَاللَّهُ يَعْلَمُ مَا تُبْدُونَ وَمَا تَكْتُمُونَ}
Narrated Abu Sa`id Al-Khudri:
The Prophet (ﷺ) said, 'Beware! Avoid sitting on the roads." They (the people) said, "O Allah s Apostle! We can't help sitting (on the roads) as these are (our places) here we have talks." The Prophet (ﷺ) said, ' l f you refuse but to sit, then pay the road its right ' They said, "What is the right of the road, O Allah's Apostle?" He said, 'Lowering your gaze, refraining from harming others, returning greeting, and enjoining what is good, and forbidding what is evil."
Reference: Sahih al-Bukhari 6229
In-book reference: Book 79, Hadith 3
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 74, Hadith 248