Indeed, those who have believed and done righteous deeds - the Most Merciful will appoint for them affection.
[Qur’aan 19:96]
When a believer does righteous deeds with sincerity for the sake of Allah only and in accordance with the way of His Messenger (sallallaahu 'alayhi wa sallam), then the Most Merciful puts love in the hearts of mankind for that person.
Abu Huraira reported that Allah’s Messenger (ﷺ) said:
**When Allah loves a servant, He calls Gabriel and says: Verily, I so and so; you should also love him, and then Gabriel begins to love him.
Then he makes an announcement in the heaven saying: Allah loves so and so and you also love him, and then the inhabitants of the Heaven (the Angels) also begin to love him and then there is conferred honor upon him in the earth; and when Allah is angry with any servant He calls Gabriel and says:
I am angry with such and such and you also become angry with him, and then Gabriel also becomes angry and then makes an announcement amongst the inhabitants of heaven:
Verily Allah is angry with so-and so, so you also become angry with him, and thus they also become angry with him. Then he becomes the object of wrath on the earth also.
**
[Sahih Muslim Hadith No. 2637]
Reference(s):
Tafsir Al-Tabari
Tafsir Ibn Katheer