Sahih Muslim 78
Muslim ibn al-Hajjaj al-Naysaburi
««أَنْ لَا يُحِبَّنِي إِلَّا مُؤْمِنٌ، وَلَا يَبْغَضُنِي إِلَّا مُنَافِقٌ»»
Its text does not say these are the Prophet’s words ﷺ, so they are not framed in gold.
The text as printed
١٣١ - (٧٨) حدثنا أبو بكر بن أبي شيبة. حدثنا وكيع وأبو معاوية، عَنِ الأَعْمَشِ. ح وحَدَّثَنَا يَحْيَى بْنُ يَحْيَي (واللفظ له) أخبرنا أبو معاوية، عن الأعمش، عَنْ عَدِيِّ بْنِ ثَابِتٍ، عَنْ زِرٍّ، قَالَ: قَالَ عَلِيٌّ: وَالَّذِي فَلَقَ الْحَبَّةَ وَبَرَأَ النَّسَمَةَ! إِنَّهُ لَعَهْدُ النَّبِيِّ الأُمِّيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِلَيَّ "أَنْ لَا يُحِبَّنِي إِلَّا مُؤْمِنٌ، ولا يبغضني إلا منافق" .
Rulings on it
The early critics’ verdicts on this hadith have not been extracted from their books yet: they are in their texts, and their extraction is coming.