Mishkat al-Masabih

Anas said that when the Prophet (ﷺ) returned from a journey and looked at the walls of Medina he made his camel hasten, and if he was on a horse (Dabba. This word is used for either a horse or a mule, and although it is feminine it is used for either male or female) he urged it on through love of Medina. Bukhari transmitted it.

وَعَنْ أَنَسٍ: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ إِذَا قَدِمَ مِنْ سَفَرٍ فَنَظَرَ إِلى جُدُراتِ الْمَدِينَةِ أَوْضَعَ رَاحِلَتَهُ وَإِنْ كَانَ عَلَى دَابَّةٍ حركها من حبها. رَوَاهُ البُخَارِيّ