صحيح البخاري Sahih Bukhari كتاب فضائل المدينة The Book About The Virtues Or Al-Madina.
بَابُ كَرَاهِيَةِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنْ تُعْرَى الْمَدِينَةُ:

(11) Chapter. The dislike of the Prophet ﷺ that Al-Madina should be vacated.

1 hadith
Hadith 1887
حَدَّثَنَا ابْنُ سَلَامٍ ، أَخْبَرَنَا الْفَزَارِيُّ ، عَنْ حُمَيْدٍ الطَّوِيلِ ، عَنْ أَنَسٍ رَضِيَ اللَّهُ عَنْهُ ، قَالَ : " أَرَادَ بَنُو سَلِمَةَ أَنْ يَتَحَوَّلُوا إِلَى قُرْبِ الْمَسْجِدِ ، فَكَرِهَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنْ تُعْرَى الْمَدِينَةُ ، وَقَالَ : يَا بَنِي سَلِمَةَ ، أَلَا تَحْتَسِبُونَ آثَارَكُمْ ، فَأَقَامُوا " .
Narrated Anas: (The people of) Bani Salama intended to shift near the mosque (of the Prophet) but Allah's Apostle disliked to see Medina vacated and said, "O the people of Bani Salama! Don't you think that you will be rewarded for your footsteps which you take towards the mosque?" So, they stayed at their old places.
Hadith Reference Sahih Bukhari / The Book About The Virtues Or Al-Madina. / Hadith: 1887
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة