Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Every ruler has two sets of close advisors. One urges him toward what is good and forbids him from what is evil, while the other spares no effort in corrupting him. Whoever is protected from the harm of the latter has truly been protected, and a ruler belongs to whichever of the two prevails over him."

Azami 7705

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: ما من وال إلا وله بطانتان: بطانة تأمره بالمعروف، وتنهاه عن المنكر، وبطانة لا تألوه خبالا، فمن وقي شرها فقد وقي، وهو من التي تغلب عليه منهما.

الأعظمي 7705صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Leadership
Section
Encouragement to keep righteous companions
Numbering
Jami al-Kamil 7705 (2nd edition)
Azami 7705