Ali said, "By the One who split the seed and created the soul, it is indeed a covenant from the unlettered Prophet ﷺ to me that none loves me except a believer, and none hates me except a hypocrite."
حدثنا أبو بكر بن أبي شيبة حدثنا وكيع وأبو معاوية عن الأعمش ح و حدثنا يحيى بن يحيى واللفظ له أخبرنا أبو معاوية عن الأعمش عن عدي بن ثابت
قال علي والذي فلق الحبة وبرأ النسمة إنه لعهد النبي الأمي ﷺ إلي أن لا يحبني إلا مؤمن ولا يبغضني إلا منافق
Muslim narrated the hadith of Adi bin Thabit, "By the One who splits the seed." Bukhari did not narrate it.
The scholar Dhahabi said in Mizan al-Itidal, in the biography of Abu Aban bin Taghlib, "He was a staunch Shia, but he was truthful, so we accept his truthfulness while holding him accountable for his innovation." He went on to say, "Someone might ask, how is it permissible to affirm the reliability of an innovator, when the definition of trustworthiness requires both integrity and precision? How can someone who holds an innovation be considered of sound integrity?The answer is that innovation is of two kinds. There is minor innovation, such as extreme Shiism, or Shiism without extremism or distortion. This was common among the Followers and those who came after them, alongside religious commitment, piety, and truthfulness. If the narrations of such people were rejected, a great many of the Prophetic traditions would be lost, and this would be a clear source of harm."Ibn Hajar, may Allah have mercy on him, has a fine discussion related to Shiism and Nasibism in Tahdhib al-Tahdhib, in the biography of Lamazah bin Zabbar Azdi, which should be consulted.