'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. (Using translation from Nasāʾī 4203)
"إِنَّ الله لم يَبْعَثْ نبيًّا ولا خليفةً إلا ولَهَ بطانتان: بطانَةٌ تأمرُهُ بالمعروف، تنهاهُ عن الْمُنْكَرِ، وبطانةٌ لا تألوهُ خَبَالًا، ومن يوُقَ بطانةَ السُّوءِ فَقَدْ وُقى ".