Sunan an-Nasa'i, Book 28, Hadith 12 (Nasa'i 3580)

It was narrated that Jarir said:

"I saw the Messenger of Allah twisting the forelock of a horse with his two fingers, and saying: 'Goodness is tied to the forelocks of horses until the Day of Resurrection: Reward and spoils of war.'"