The Prophet ﷺ said, "Goodness is tied to the forelocks of horses until the Day of Judgment."
حدثنا يحيى عن عبيد الله أخبرني نافع
قال النبي ﷺ الخيل بنواصيها الخير إلى يوم القيامة
Its isnad is sahih, and Malik, the two Shaykhs, Nasai, and Ibn Majah narrated it, as mentioned in Jami Saghir 4156.