Sunan an-Nasa'i, Book 47, Hadith 38 (Nasa'i 5031)

It was narrated that 'Ali said:

"The Prophet made a covenant with me that none would love me but a believer, and none would hate me but a hypocrite."