Sunan an-Nasa'i, Book 47, Hadith 34 (Nasa'i 5027)

It was narrated that Zirr said:

'Ali said: "The Unlettered Prophet made a covenant with me, that none but a believer would love me, and none but a hypocrite would hate me."