Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:3716a

The Prophet ﷺ said: The best of the actions is to love for the sake of Allah and to hate for the sake of Allah. (Using translation from Abū Dāʾūd 4599)   

السيوطي:٣٧١٦a

"أفضلُ الأعمالِ الحبُّ في الله، والبُغض في الله" .  

[د] أبو داود عن أبي ذَرٍّ

See similar narrations below:

Collected by Abū Dāwūd, Suyūṭī
abudawud:4599Musaddad > Khālid b. ʿAbdullāh > Yazīd b. Abū Ziyād > Mujāhid > a man > Abū Dhar

The Prophet ﷺ said: The best of the actions is to love for the sake of Allah and to hate for the sake of Allah.  

أبو داود:٤٥٩٩حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا خَالِدُ بْنُ عَبْدِ اللَّهِ حَدَّثَنَا يَزِيدُ بْنُ أَبِي زِيَادٍ عَنْ مُجَاهِدٍ عَنْ رَجُلٍ عَنْ أَبِي ذَرٍّ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ أَفْضَلُ الأَعْمَالِ الْحُبُّ فِي اللَّهِ وَالْبُغْضُ فِي اللَّهِ