Sahih al-Bukhari, Book 78, Hadith 196 (Bukhari 5937)

Narrated Abu Musa:

It was said to the Prophet; , "A man may love some people but he cannot catch up with their good deeds?" The Prophet (ﷺ) said, "Everyone will be with those whom he loves."