“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 Taymiyya 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 (ra) and Umar Ibn Al Khattab (ra) 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.”
Source: (منهاج السنة النبوية في نقض كلام الشيعة والقدرية Minhaj al-Sunnah al-Nabawiyyah fi Naqd Kalam al-Shi’a wa al-Qadariyyah)
The implication (though not explicitly stated by Ibn Taymiyya) was that Ali was not of those who worked deeds of righteousness.
Ibn Taymiyya continues:
“They love and venerate him, while Abu Bakr and Umar – may God be pleased with them – have been hated and cursed by the Rafidah (Rejectors), the Nusayriyyah, the Ghulat (Extremists), and the Ismailis. However, it is known that those who loved those two (1) are better and more numerous, and that those who hated them are further from Islam and fewer.”
“This contradicts the case of Ali, for those who hated and fought him are better than those who hated Abu Bakr and Umar. In fact, the faction of Uthman, who love him and hate Ali, even if they are innovators and wrongdoers, are more knowledgeable and religious than the faction of Ali who love him and hate Uthman, and they are greater in jihad and justice. Thus, it is clear that the affection mandated for the three [first Caliphs] is greater.”
“And if it is said: ‘Claims of divinity and prophethood have been made about Ali (2),’ it is replied: ‘All the Khawarij considered him a disbeliever and the Marwaniyyah hated him. And these are better than the Rafidah who curse Abu Bakr and Umar – may God be pleased with them – let alone the Extremists (3).'”
Source: [Chapter: The Thirteenth Proof “You are only a warner, and for every people there is a guide.”]





You may be interested in reading the following:
May Allah Forgive the Ummah.
May Allah Guide the Ummah.