Anas bin Malik reported,

When the Prophet ﷺ returned from a journey and caught sight of the walls of Madinah, he would urge his mount to quicken its pace, and if he was riding another animal, he would spur it on out of his love for the city.

Bukhari 1886

Sahih

حدثنا قتيبة حدثنا إسماعيل بن جعفر عن حميد

عن أنس رضي الله عنه

أن النبي ﷺ كان إذا قدم من سفر فنظر إلى جدرات المدينة أوضع راحلته وإن كان على دابة حركها من حبها

البخاري 1886صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of Madinah
Chapter
Madinah expels impurity
Numbering
Darussalam 1886
Bukhari 1886