Sunan Ibn Majah (Ibn Majah 114)

It was narrated that 'Ali said:

"The Unlettered Prophet informed me (saying) that none but a believer would love me and none but a hypocrite would hate me."