"Allah never sends a prophet or appoints a Khalifah but he has two groups of advisers: A group that tells him to do good and a group that tells him to do evil and urges him to do it. And the one who is truly protected is the one who is protected by Allah, the Mighty and Sublime." (Using translation from Nasāʾī 4202)
عَنْ رَسُولِ اللهِ ﷺ قَالَ مَا بَعَثَ اللهُ مِنْ نَبِيٍّ وَلَا اسْتَخْلَفَ مِنْ خَلِيفَةٍ إِلَّا كَانَتْ لَهُ بِطَانَتَانِ بِطَانَةٌ تَأْمُرُهُ بِالْخَيْرِ وَتَحُضُّهُ عَلَيْهِ وَبِطَانَةٌ تَأْمُرُهُ بِالشَّرِّ وَتَحُضُّهُ عَلَيْهِ فَالْمَعْصُومُ مَنْ عَصَمَ اللهُ