Jami` at-Tirmidhi, Book 36, Hadith 84 (Tirmidhi 2456)

Safwan bin Assal narrated that a Bedouin with a loud voice and said:

" O Muhammad! A man loves the people but does not catch up to them (in deeds)." So the Messenger of Allah(s.a.w) said: "A man shall be with whomever he loves."