'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)
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ مَا بَعَثَ اللهُ مِنْ نَبِيٍّ وَلَا كَانَ بَعْدَهُ خَلِيفَةٌ إِلَّا لَهُ بِطَانَتَانِ بِطَانَةٌ تَأْمُرُهُ بِالْمَعْرُوفِ وَتَنْهَاهُ عَنِ الْمُنْكَرِ وَبِطَانَةٌ لَا تَأْلُوهُ خَبَالًا فَمَنْ وُقِيَ بِطَانَةَ السَّوْءِ فَقَدْ وُقِيَ