Sunan an-Nasa'i, Book 39, Hadith 55 (Nasa'i 4213)

It was narrated that Abu Ayyub said; "I heard the Messenger of Allah say:

'No prophet has eve been sent, nor has there been any Khalifah after him, but he has two groups of advisers, a group that tells him to do good and a group that tells him to do evil. Whoever is protected from the evil group, then he is indeed protected.