Sahih al-Bukhari, Book 60, Hadith 11 (Bukhari 3198)

Narrated Aishah (ra):

I heard the Prophet (ﷺ), "Souls are like recruited troops: Those who are like qualities are inclined to each other, but those who have dissimilar qualities, differ."