Translation
(61) Virtues and Merits of the Prophet (pbuh) and his Companions
كتاب المناقب
(28) Chapter
(28) باب
Sahih al-Bukhari 3644 

Narrated Ibn `Umar:

Allah's Messenger (ﷺ) said, "There is always goodness in horses till the Day of Resurrection. "

حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، قَالَ أَخْبَرَنِي نَافِعٌ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ الْخَيْلُ فِي نَوَاصِيهَا الْخَيْرُ إِلَى يَوْمِ الْقِيَامَةِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 3644
In-book reference : Book 61, Hadith 147
USC-MSA web (English) reference : Vol. 4, Book 56, Hadith 837
  (deprecated numbering scheme)