Sahih Muslim, Book 33, Hadith 145 (Muslim 4805)

The same tradition has been narrated on the authority of Urwat al-Bariqi who said that the Prophet (ﷺ) said:

Great good is attached to the forelock of the horses until the Day of Judgment.