Abu Saeed Khudri reported,

The Prophet ﷺ said, "Allah has never sent a prophet nor appointed a successor without there being two close circles around him. One circle urges him toward good and encourages him in it, and another circle urges him toward evil and encourages him in it. The truly protected one is he whom Allah Most High protects."

Azami 7703

Sahih

عن أبي سعيد الخدري

عن النبي ﷺ قال: ما بعث الله من نبي ولا استخلف من خليفة إلا كانت له بطانتان: بطانة تأمره بالمعروف، وتحضه عليه، وبطانة تأمره بالشر، وتحضه عليه، فالمعصوم من عصم الله تعالى.

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