You are Raised with the Ones You Love
Abu Musa Al-Ashari (radi Allahu anhu) reported that the Prophet (sal Allahu alaihi wa sallam) said, “A person will be summoned with the one whom he loves.”
[Sahih al-Bukhari and Muslim]
Another narration is: The Prophet (sal Allahu alaihi wa sallam) was asked; “What about a person who loves a people but cannot be with them?” (i.e., either he cannot attain their lofty position of righteousness or that he has not met with them in this life). He (sal Allahu alaihi wa sallam) replied, “A person will be in the company of those whom he loves”.
Besides bringing to eminence the high merit of entertaining the love for the pious persons, this Hadith tells us about the Mercy and Blessings of Allah which He will shower upon those who love the pious people. Because of this love, Allah will elevate even the inferior people and include them among those whom He loves.
This Hadith also serves a warning that association and love with the evil people is extremely dangerous as one can meet the same bad end which is inevitable for them. May Allah save us from it.
And Allah Knows Best!