Sunan Abi Dawud, Book 43, Hadith 116 (Abu Dawud 4890)

Narrated Mu'awiyah:

I heard the Messenger of Allah (ﷺ) say: If you search for the faults of the people, you will corrupt them, or will nearly corrupt them. AbudDarda' said: These are the words which Mu'awiyah himself from the Messenger of Allah (ﷺ), and Allah benefited him by them.