Abu Sa'id and Abu Hurairah (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "Allah neither raised up any Prophet nor did He authorize any person with ruling power but for whom there were two types of entourage: one enjoins upon him to do good and incites him to carry it out, and the other enjoins evil and goads him; and the protected (from the bad entourage) is the one whom Allah protects."[Al-Bukhari].
Arabic/English book reference: Book 1, Hadith 678