It is narrated from Hazrat Anas (may Allah be pleased with him) that a man submitted in the court of the Messenger, "O Messenger of Allah (peace and blessings be upon him)! A man loves a certain people but cannot reach their deeds, so what is the ruling?" The Prophet (peace and blessings be upon him) said, "A person will be with those whom he loves."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 12625