Jami` at-Tirmidhi, Book 43, Hadith 47 (Tirmidhi 2852)

Narrated Ibn Buraidah:

from his father (from the Prophet (ﷺ)) who said: "O 'Ali! Do not follow a look with a look, the first is for you, but the next is not for you."