“Verily, those who believe and work deeds of righteousness, the Most Beneficent (Allah) will bestow love for them (in the hearts of the believers).” (Qur’an 19:96)
Ibn Taymiyyah al Harrani in his as–Sunnah an-Nabawiyyah when he comments about the above ayat in relation to Ali ibn Abi Talib that:
“Allah (swt) has told that He will place on the believers and those that preform good, love. And this is a true promise from him. Especially for the Caliphs Abu Bakr (r.a) and Umar Ibn Al Khattab (r.a) for the general amount of companions loved them and they were the best periods of Islam. Ali was not like that, as a large number of companions (sahabah) and followers (tab’ieen) hated him, cursed him and fought him.”
The implication (though not explicitly stated by Ibn Taymiyyah) was that Ali was not of those who worked deeds of righteousness.
There is allot more dirty laundry where this came from.