(47) The Book Of Faith and its Signs
كتاب الإيمان وشرائعه
(19) Chapter: The Sign of Faith
(19) عَلَامَةُ الْإِيمَانِ
Sunan an-Nasa'i 5018 
It was narrated that Zirr said:
'Ali said: "The Unlettered Prophet [SAW] made a covenant with me, that none but a believer would love me, and none but a hypocrite would hate me."
أَخْبَرَنَا يُوسُفُ بْنُ عِيسَى قَالَ أَنْبَأَنَا الْفَضْلُ بْنُ مُوسَى قَالَ أَنْبَأَنَا الْأَعْمَشُ عَنْ عَدِيٍّ عَنْ زِرٍّ قَالَ قَالَ عَلِيٌّ إِنَّهُ لَعَهْدُ النَّبِيِّ الْأُمِّيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِلَيَّ أَنَّهُ لَا يُحِبُّكَ إِلَّا مُؤْمِنٌ وَلَا يَبْغُضُكَ إِلَّا مُنَافِقٌ
Grade :  Sahih (Darussalam)
Reference : Sunan an-Nasa'i 5018
In-book reference : Book 47, Hadith 34
English translation : Vol. 6, Book 47, Hadith 5021