Sahih Muslim Book 032, Hadith Number 6387.
Hadith Section/Book: Sahih Muslim Sahih Muslim Book 32. Virtues, Good Manners and Joining Of The Ties Of Relationship
Chapter : A person would be along with him whom he loves.
Abu Musa, reported that a person came to Allah's Messenger (may peace be upon him); the rest of the hadith is the same.