Anas (RAA) narrated that the Messenger of Allah (ﷺ) said:
"Blessed is he who is preoccupied with his defects rather than those of other people." Related by Al-Bazzar with a good chain of narrators.
English reference: Book 16, Hadith 1553
Arabic reference: Book 16, Hadith 1510